Skip to content

Commit d904879

Browse files
committed
Reverted breaking ChatGPT Projects styles (fixes adamlui/chatgpt-widescreen#212)
1 parent 213f5bf commit d904879

File tree

4 files changed

+0
-42
lines changed

4 files changed

+0
-42
lines changed

chatgpt-widescreen/chromium/extension/content.js

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -284,19 +284,4 @@
284284
notify(browserAPI.getMsg('notif_chatStopped'), 'bottom-right')) } catch (err) {}
285285
})
286286

287-
// Ensure CHATGPT PROJECTS scroll
288-
if (env.site == 'chatgpt') {
289-
ensureProjectsScroll()
290-
new MutationObserver(ensureProjectsScroll).observe(document.body, { childList: true, subtree: true })
291-
function ensureProjectsScroll() {
292-
const projectElem = document.querySelector(
293-
'div[role="presentation"] > header#page-header + div.flex.basis-auto.flex-col.grow')
294-
if (projectElem) {
295-
projectElem.style.overflowY = 'auto'
296-
projectElem.style.maxHeight = '100vh' // safety cap
297-
projectElem.style.overscrollBehavior = 'contain' // smoother wheel/touch behaviour
298-
}
299-
}
300-
}
301-
302287
})()

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

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -70,12 +70,6 @@ window.styles = {
7070
${ site != 'chatgpt' ? ''
7171
: `main { /* prevent h-scrollbar on sync.mode('fullWindow) => delayed chatbar.tweak() */
7272
overflow: clip !important }
73-
div[role="presentation"] > header#page-header + div.flex.basis-auto.flex-col.grow {
74-
/* keep Projects landing list scrollable */
75-
overflow-y: auto !important;
76-
max-height: 100vh; /* safety cap */
77-
overscroll-behavior: contain; /* smoother wheel/touch behaviour */
78-
}
7973
${ !await chatbar.is.dark() ? '' // color 'Attach File' white
8074
: `svg:has(path[d^="M9 7C9 4.238"]) + span { color: white }`}`}
8175
${ config.tcbDisabled ? '' // heighten chatbox

chatgpt-widescreen/firefox/extension/content.js

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -284,19 +284,4 @@
284284
notify(browserAPI.getMsg('notif_chatStopped'), 'bottom-right')) } catch (err) {}
285285
})
286286

287-
// Ensure CHATGPT PROJECTS scroll
288-
if (env.site == 'chatgpt') {
289-
ensureProjectsScroll()
290-
new MutationObserver(ensureProjectsScroll).observe(document.body, { childList: true, subtree: true })
291-
function ensureProjectsScroll() {
292-
const projectElem = document.querySelector(
293-
'div[role="presentation"] > header#page-header + div.flex.basis-auto.flex-col.grow')
294-
if (projectElem) {
295-
projectElem.style.overflowY = 'auto'
296-
projectElem.style.maxHeight = '100vh' // safety cap
297-
projectElem.style.overscrollBehavior = 'contain' // smoother wheel/touch behaviour
298-
}
299-
}
300-
}
301-
302287
})()

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

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -70,12 +70,6 @@ window.styles = {
7070
${ site != 'chatgpt' ? ''
7171
: `main { /* prevent h-scrollbar on sync.mode('fullWindow) => delayed chatbar.tweak() */
7272
overflow: clip !important }
73-
div[role="presentation"] > header#page-header + div.flex.basis-auto.flex-col.grow {
74-
/* keep Projects landing list scrollable */
75-
overflow-y: auto !important;
76-
max-height: 100vh; /* safety cap */
77-
overscroll-behavior: contain; /* smoother wheel/touch behaviour */
78-
}
7973
${ !await chatbar.is.dark() ? '' // color 'Attach File' white
8074
: `svg:has(path[d^="M9 7C9 4.238"]) + span { color: white }`}`}
8175
${ config.tcbDisabled ? '' // heighten chatbox

0 commit comments

Comments
 (0)