Skip to content

Commit 32a42a8

Browse files
committed
Add new CSS selector to fix some JS-based page loads
1 parent 8e979c6 commit 32a42a8

File tree

5 files changed

+17
-5
lines changed

5 files changed

+17
-5
lines changed

build/wide-github.user.css

+5-1
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.4
13+
@version 1.6.5
1414
@homepageURL https://github.com/xthexder/wide-github
1515
@supportURL https://github.com/xthexder/wide-github/issues
1616
==/UserStyle== */
@@ -32,6 +32,10 @@
3232
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) {
3333
max-width: none;
3434
}
35+
/* Alternative match for above to handle JS-loaded vs full refresh pages */
36+
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) {
37+
max-width: none;
38+
}
3539
body:not(.wgh-disabled) .Layout-main div[data-selector="repos-split-pane-content"] {
3640
max-width: none;
3741
}

build/wide-github.user.js

+5-1
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.4
15+
// @version 1.6.5
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
@@ -37,6 +37,10 @@ var styleSheet = "" +
3737
"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) {" +
3838
"max-width: none;" +
3939
"}" +
40+
// Alternative match for above to handle JS-loaded vs full refresh pages
41+
"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) {" +
42+
"max-width: none;" +
43+
"}" +
4044
"body:not(.wgh-disabled) .Layout-main div[data-selector=\"repos-split-pane-content\"] {" +
4145
"max-width: none;" +
4246
"}" +

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.4",
7-
"version_name": "1.6.4 MV3",
6+
"version": "1.6.5",
7+
"version_name": "1.6.5 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.4",
6+
"version": "1.6.5",
77
"icons": {
88
"32": "icons/icon32.png",
99
"48": "icons/icon48.png",

wide-github.css

+4
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ body:not(.wgh-disabled) .react-repos-overview-margin {
1313
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) {
1414
max-width: none;
1515
}
16+
/* Alternative match for above to handle JS-loaded vs full refresh pages */
17+
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) {
18+
max-width: none;
19+
}
1620
body:not(.wgh-disabled) .Layout-main div[data-selector="repos-split-pane-content"] {
1721
max-width: none;
1822
}

0 commit comments

Comments
 (0)