Skip to content

Commit 8e3ca3f

Browse files
committed
Updated ChatGPT table styles (adamlui/chatgpt-widescreen#239)
1 parent bae90bd commit 8e3ca3f

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,10 @@ window.styles = {
101101
return config.extensionDisabled || config[`${site}Disabled`] ? '' : {
102102
chatgpt: `
103103
${outerDivSelector} { max-width: ${wsWidth}px !important } /* widen outer div */
104-
div[class*=tableContainer] { min-width: 100vw } /* widen tables */
105-
div[class*=tableWrapper] { min-width: ${wsWidth}px }
106-
div[class*=tableWrapper] > table { width: 100% }`,
104+
/* widen tables */
105+
div[class*=tableContainer] { margin: 0 ; width: auto }
106+
div[class*=tableWrapper] { margin: 0 ; min-width: ${wsWidth}px }
107+
div[class*=tableWrapper] > table { width: 100% }`,
107108
poe: `
108109
${outerDivSelector} { width: calc(${wsWidth}px - 4%) !important } /* widen outer div */
109110
div[class^=Message] { max-width: 100% !important }` // widen speech bubbles

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,10 @@ window.styles = {
101101
return config.extensionDisabled || config[`${site}Disabled`] ? '' : {
102102
chatgpt: `
103103
${outerDivSelector} { max-width: ${wsWidth}px !important } /* widen outer div */
104-
div[class*=tableContainer] { min-width: 100vw } /* widen tables */
105-
div[class*=tableWrapper] { min-width: ${wsWidth}px }
106-
div[class*=tableWrapper] > table { width: 100% }`,
104+
/* widen tables */
105+
div[class*=tableContainer] { margin: 0 ; width: auto }
106+
div[class*=tableWrapper] { margin: 0 ; min-width: ${wsWidth}px }
107+
div[class*=tableWrapper] > table { width: 100% }`,
107108
poe: `
108109
${outerDivSelector} { width: calc(${wsWidth}px - 4%) !important } /* widen outer div */
109110
div[class^=Message] { max-width: 100% !important }` // widen speech bubbles

0 commit comments

Comments
 (0)