Skip to content

Commit efd6b18

Browse files
committed
Fix style not applying when page is loaded via JS vs a full refresh
1 parent 939119a commit efd6b18

File tree

5 files changed

+14
-14
lines changed

5 files changed

+14
-14
lines changed

build/wide-github.user.css

+4-4
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
@contributor Robert Laverty (https://github.com/roblav96)
1111
@contributor Amir Meimari (https://github.com/amirmeimari)
1212
@license MIT; https://raw.githubusercontent.com/xthexder/wide-github/master/LICENSE
13-
@version 1.6.1
13+
@version 1.6.2
1414
@homepageURL https://github.com/xthexder/wide-github
1515
@supportURL https://github.com/xthexder/wide-github/issues
1616
==/UserStyle== */
@@ -33,13 +33,13 @@
3333
}
3434

3535
/* New github repository react divs (2023) */
36-
body:not(.wgh-disabled) .repository-content .react-repos-overview-margin {
36+
body:not(.wgh-disabled) .react-repos-overview-margin {
3737
margin-right: 0;
3838
}
39-
body:not(.wgh-disabled) .repository-content div[style="--sticky-pane-height: 100vh;"] > div[class^='Box-sc-'] > div[class^='Box-sc-'] > div[class^='Box-sc-'] > div[class^='Box-sc-']:nth-child(2) {
39+
body:not(.wgh-disabled) .Layout-main div[style="--sticky-pane-height: 100vh;"] > div[class^='Box-sc-'] > div[class^='Box-sc-'] > div[class^='Box-sc-'] > div[class^='Box-sc-']:nth-child(2) {
4040
max-width: none;
4141
}
42-
body:not(.wgh-disabled) .repository-content div[data-selector="repos-split-pane-content"] {
42+
body:not(.wgh-disabled) .Layout-main div[data-selector="repos-split-pane-content"] {
4343
max-width: none;
4444
}
4545

build/wide-github.user.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
// @contributor Robert Laverty (https://github.com/roblav96)
1313
// @contributor Amir Meimari (https://github.com/amirmeimari)
1414
// @license MIT; https://raw.githubusercontent.com/xthexder/wide-github/master/LICENSE
15-
// @version 1.6.1
15+
// @version 1.6.2
1616
// @icon https://raw.githubusercontent.com/xthexder/wide-github/master/icons/icon.png
1717
// @homepageURL https://github.com/xthexder/wide-github
1818
// @supportURL https://github.com/xthexder/wide-github/issues
@@ -38,13 +38,13 @@ var styleSheet = "" +
3838
"}" +
3939

4040
// New github repository react divs (2023)
41-
"body:not(.wgh-disabled) .repository-content .react-repos-overview-margin {" +
41+
"body:not(.wgh-disabled) .react-repos-overview-margin {" +
4242
"margin-right: 0;" +
4343
"}" +
44-
"body:not(.wgh-disabled) .repository-content div[style="--sticky-pane-height: 100vh;"] > div[class^='Box-sc-'] > div[class^='Box-sc-'] > div[class^='Box-sc-'] > div[class^='Box-sc-']:nth-child(2) {" +
44+
"body:not(.wgh-disabled) .Layout-main div[style="--sticky-pane-height: 100vh;"] > div[class^='Box-sc-'] > div[class^='Box-sc-'] > div[class^='Box-sc-'] > div[class^='Box-sc-']:nth-child(2) {" +
4545
"max-width: none;" +
4646
"}" +
47-
"body:not(.wgh-disabled) .repository-content div[data-selector="repos-split-pane-content"] {" +
47+
"body:not(.wgh-disabled) .Layout-main div[data-selector="repos-split-pane-content"] {" +
4848
"max-width: none;" +
4949
"}" +
5050

chrome/manifest.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33

44
"name": "Wide GitHub",
55
"description": "Change all GitHub repository and gist pages to be full width and dynamically sized.",
6-
"version": "1.6.1",
7-
"version_name": "1.6.1 MV3",
6+
"version": "1.6.2",
7+
"version_name": "1.6.2 MV3",
88
"icons": {
99
"32": "icons/icon32.png",
1010
"48": "icons/icon48.png",

mozilla/manifest.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
"name": "Wide GitHub",
55
"description": "Change all GitHub repository and gist pages to be full width and dynamically sized.",
6-
"version": "1.6.1",
6+
"version": "1.6.2",
77
"icons": {
88
"32": "icons/icon32.png",
99
"48": "icons/icon48.png",

wide-github.css

+3-3
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@ body:not(.wgh-disabled) .application-main .container-lg {
1414
}
1515

1616
/* New github repository react divs (2023) */
17-
body:not(.wgh-disabled) .repository-content .react-repos-overview-margin {
17+
body:not(.wgh-disabled) .react-repos-overview-margin {
1818
margin-right: 0;
1919
}
20-
body:not(.wgh-disabled) .repository-content div[style="--sticky-pane-height: 100vh;"] > div[class^='Box-sc-'] > div[class^='Box-sc-'] > div[class^='Box-sc-'] > div[class^='Box-sc-']:nth-child(2) {
20+
body:not(.wgh-disabled) .Layout-main div[style="--sticky-pane-height: 100vh;"] > div[class^='Box-sc-'] > div[class^='Box-sc-'] > div[class^='Box-sc-'] > div[class^='Box-sc-']:nth-child(2) {
2121
max-width: none;
2222
}
23-
body:not(.wgh-disabled) .repository-content div[data-selector="repos-split-pane-content"] {
23+
body:not(.wgh-disabled) .Layout-main div[data-selector="repos-split-pane-content"] {
2424
max-width: none;
2525
}
2626

0 commit comments

Comments
 (0)