The CSS-only fix lost a specificity fight: Obsidian qualifies the sizer with its view class, outranking a bare .markdown-preview-sizer:has(...) declaration with no !important. The cap stayed, the container query correctly saw a ~700px container, and the grid collapsed to one column. widenHost() now lifts the cap inline at render time, which cannot lose on specificity and does not depend on Obsidian's class names staying stable. The CSS rules remain as belt-and-braces, now with the view-class variants and !important.
23 KiB
23 KiB