From b3feb38369972caf3b37b3ddc5e550b92eff798d Mon Sep 17 00:00:00 2001 From: Adorian Doran Date: Sun, 28 Dec 2025 19:45:48 +0200 Subject: [PATCH] style/options: properly align the title with the option cards when the content is centered --- apps/client/src/stylesheets/theme-next/pages.css | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/apps/client/src/stylesheets/theme-next/pages.css b/apps/client/src/stylesheets/theme-next/pages.css index c9a34789b..f323d0000 100644 --- a/apps/client/src/stylesheets/theme-next/pages.css +++ b/apps/client/src/stylesheets/theme-next/pages.css @@ -151,6 +151,11 @@ --options-title-font-size: .75rem; --options-title-offset: 13px; } + +.note-split.options { + --preferred-max-content-width: var(--options-card-max-width); +} + /* Create a gap at the top of the option pages */ .note-detail-content-widget-content.options>*:first-child { margin-top: var(--options-first-item-top-margin, 1em); @@ -185,10 +190,6 @@ body.experimental-feature-new-layout .note-detail-content-widget-content.options padding: var(--options-card-padding); } -body.prefers-centered-content .options-section:not(.tn-no-card) { - margin-inline: auto; -} - body.desktop .options-section:not(.tn-no-card) { min-width: var(--options-card-min-width); max-width: var(--options-card-max-width);