/* X uses the whole window: the timeline and its posts take the room, the sidebar keeps its width. Hooks onto X's layout names (its --x-main-column-width and --x-timeline-max-width variables, data-testid), never its generated class names. */ /* X's current layout */ div[class*="xl:max-w-[1280px]"] { max-width: none !important; } div[class*="lg:grid-cols-[var(--x-main-column-width)"] { max-width: none !important; } @media (min-width: 1024px) { div[class*="lg:grid-cols-[var(--x-main-column-width)"] { grid-template-columns: minmax(0, 1fr) 350px !important; } } main[class*="max-w-(--x-main-column-width)"], main [class*="max-w-(--x-main-column-width)"] { max-width: none !important; } /* the posts: X's own setting for the timeline's width (600px when unset) */ main { --x-timeline-max-width: none; } main [class*="max-w-[var(--x-timeline-max-width"] { max-width: none !important; } /* X's older layout (still what many signed-in accounts get): the column takes the room the sidebar leaves, and the box inside it that holds the posts to 600px is lifted too. */ main[role="main"] > div { width: 100% !important; max-width: none !important; } [data-testid="primaryColumn"] { max-width: none !important; width: auto !important; flex: 1 1 0% !important; min-width: 0 !important; } [data-testid="primaryColumn"] div:has(> section[role="region"]) { max-width: none !important; } /* X shares the spare room between its menu and the content, which on some pages (a single post) pushes the menu in from the left and leaves the column narrow. The menu keeps its own width; the content takes the rest. */ header[role="banner"] { flex-grow: 0 !important; }