Skip to content

Commit

Permalink
Confined inner container expansion on chatgpt.com to short chatbar UI…
Browse files Browse the repository at this point in the history
… that needs it
  • Loading branch information
adamlui committed Dec 4, 2024
1 parent 31b04c3 commit 5b20aaf
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion chatgpt-widescreen/chrome/extension/content.js
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@
wideScreenStyle.innerText = (
env.site == 'chatgpt' ? (
'.text-base { max-width: 100% !important }' // widen outer container
+ '.text-base:nth-of-type(2) { max-width: 97% !important }' // widen inner container
+ ( !env.tallChatbar ? '.text-base:nth-of-type(2) { max-width: 97% !important }' : '' )
) : env.site == 'perplexity' ? (
`${sites.perplexity.selectors.header} ~ div,` // outer container
+ `${sites.perplexity.selectors.header} ~ div > div` // inner container
Expand Down
2 changes: 1 addition & 1 deletion chatgpt-widescreen/firefox/extension/content.js
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@
wideScreenStyle.innerText = (
env.site == 'chatgpt' ? (
'.text-base { max-width: 100% !important }' // widen outer container
+ '.text-base:nth-of-type(2) { max-width: 97% !important }' // widen inner container
+ ( !env.tallChatbar ? '.text-base:nth-of-type(2) { max-width: 97% !important }' : '' )
) : env.site == 'perplexity' ? (
`${sites.perplexity.selectors.header} ~ div,` // outer container
+ `${sites.perplexity.selectors.header} ~ div > div` // inner container
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@
// @description:zu Yengeza Isikrini Esibanzi + Izindlela Zesikrini Esigcwele ku-chatgpt.com + perplexity.ai + poe.com ukuze uthole ukubuka okuthuthukisiwe + okuncishisiwe ukuskrola
// @author Adam Lui
// @namespace https://github.com/adamlui
// @version 2024.12.4.1
// @version 2024.12.4.2
// @license MIT
// @compatible chrome
// @compatible firefox
Expand Down Expand Up @@ -753,7 +753,7 @@
wideScreenStyle.innerText = (
/chatgpt|openai/.test(env.site) ? (
'.text-base { max-width: 100% !important }' // widen outer container
+ '.text-base:nth-of-type(2) { max-width: 97% !important }' // widen inner container
+ ( !env.tallChatbar ? '.text-base:nth-of-type(2) { max-width: 97% !important }' : '' )
) : env.site == 'perplexity' ? (
`${sites.perplexity.selectors.header} ~ div,` // outer container
+ `${sites.perplexity.selectors.header} ~ div > div` // inner container
Expand Down

0 comments on commit 5b20aaf

Please sign in to comment.