Skip to content

Commit d96833b

Browse files
committed
Merged ChatGPT Projects styles into existing ones
1 parent c9d1a79 commit d96833b

File tree

2 files changed

+8
-18
lines changed

2 files changed

+8
-18
lines changed

chatgpt-widescreen/chromium/extension/lib/styles.js

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -70,19 +70,14 @@ window.styles = {
7070
${ site != 'chatgpt' ? ''
7171
: `main { /* prevent h-scrollbar on sync.mode('fullWindow) => delayed chatbar.tweak() */
7272
overflow: clip !important }
73-
${ !await chatbar.is.dark() ? '' // color 'Attach File' white
74-
: `svg:has(path[d^="M9 7C9 4.238"]) + span { color: white }`}`}
75-
76-
/* Keep Projects landing list scrollable (fix #192) */
77-
${ site == 'chatgpt' ? `
7873
div[role="presentation"] > header#page-header + div.flex.basis-auto.flex-col.grow {
74+
/* keep Projects landing list scrollable */
7975
overflow-y: auto !important;
8076
max-height: 100vh; /* safety cap */
8177
overscroll-behavior: contain; /* smoother wheel/touch behaviour */
82-
}`
83-
: ''
84-
}
85-
78+
}
79+
${ !await chatbar.is.dark() ? '' // color 'Attach File' white
80+
: `svg:has(path[d^="M9 7C9 4.238"]) + span { color: white }`}`}
8681
${ config.tcbDisabled ? '' // heighten chatbox
8782
: `${ site == 'chatgpt' ? `div[class*=prose]:has(${selectors.input})` : selectors.input }
8883
{ max-height: ${tcbHeight}vh }

chatgpt-widescreen/firefox/extension/lib/styles.js

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -70,19 +70,14 @@ window.styles = {
7070
${ site != 'chatgpt' ? ''
7171
: `main { /* prevent h-scrollbar on sync.mode('fullWindow) => delayed chatbar.tweak() */
7272
overflow: clip !important }
73-
${ !await chatbar.is.dark() ? '' // color 'Attach File' white
74-
: `svg:has(path[d^="M9 7C9 4.238"]) + span { color: white }`}`}
75-
76-
/* Keep Projects landing list scrollable (fix #192) */
77-
${ site == 'chatgpt' ? `
7873
div[role="presentation"] > header#page-header + div.flex.basis-auto.flex-col.grow {
74+
/* keep Projects landing list scrollable */
7975
overflow-y: auto !important;
8076
max-height: 100vh; /* safety cap */
8177
overscroll-behavior: contain; /* smoother wheel/touch behaviour */
82-
}`
83-
: ''
84-
}
85-
78+
}
79+
${ !await chatbar.is.dark() ? '' // color 'Attach File' white
80+
: `svg:has(path[d^="M9 7C9 4.238"]) + span { color: white }`}`}
8681
${ config.tcbDisabled ? '' // heighten chatbox
8782
: `${ site == 'chatgpt' ? `div[class*=prose]:has(${selectors.input})` : selectors.input }
8883
{ max-height: ${tcbHeight}vh }

0 commit comments

Comments
 (0)