askrobots / x-whole-window
Public
A style rule for dbbasic-browser: X's timeline uses the whole window
danq9
2026.11v4: the menu stays at the left edge, so a single post's page uses the whole window too
d1365cd
2 hours, 11 minutes ago
History
x-whole-window.user.css · 1.4 KB · 24 lines
| 1 | /* ==UserStyle== |
| 2 | @name X uses the whole window |
| 3 | @namespace gitstable.com/askrobots/x-whole-window |
| 4 | @version 2026.11.4 |
| 5 | @description X's timeline and its posts take the free width of the window instead of a fixed 600px column; the sidebar keeps its width. |
| 6 | @author AskRobots |
| 7 | @license MIT |
| 8 | @homepageURL https://gitstable.com/repositories/askrobots/x-whole-window/ |
| 9 | ==/UserStyle== */ |
| 10 | @-moz-document domain("x.com"), domain("twitter.com") { |
| 11 | div[class*="xl:max-w-[1280px]"] { max-width: none !important; } |
| 12 | div[class*="lg:grid-cols-[var(--x-main-column-width)"] { max-width: none !important; } |
| 13 | @media (min-width: 1024px) { |
| 14 | div[class*="lg:grid-cols-[var(--x-main-column-width)"] { grid-template-columns: minmax(0, 1fr) 350px !important; } |
| 15 | } |
| 16 | main[class*="max-w-(--x-main-column-width)"], |
| 17 | main [class*="max-w-(--x-main-column-width)"] { max-width: none !important; } |
| 18 | main { --x-timeline-max-width: none; } |
| 19 | main [class*="max-w-[var(--x-timeline-max-width"] { max-width: none !important; } |
| 20 | main[role="main"] > div { width: 100% !important; max-width: none !important; } |
| 21 | [data-testid="primaryColumn"] { max-width: none !important; width: auto !important; flex: 1 1 0% !important; min-width: 0 !important; } |
| 22 | [data-testid="primaryColumn"] div:has(> section[role="region"]) { max-width: none !important; } |
| 23 | header[role="banner"] { flex-grow: 0 !important; } |
| 24 | } |