diff --git a/ZB.MOM.WW.Theme/Directory.Build.props b/ZB.MOM.WW.Theme/Directory.Build.props index d29d7f2..94422ba 100644 --- a/ZB.MOM.WW.Theme/Directory.Build.props +++ b/ZB.MOM.WW.Theme/Directory.Build.props @@ -4,7 +4,7 @@ enable enable latest - 0.2.0 + 0.2.1 true diff --git a/ZB.MOM.WW.Theme/src/ZB.MOM.WW.Theme/wwwroot/css/layout.css b/ZB.MOM.WW.Theme/src/ZB.MOM.WW.Theme/wwwroot/css/layout.css index bb74c69..838fe06 100644 --- a/ZB.MOM.WW.Theme/src/ZB.MOM.WW.Theme/wwwroot/css/layout.css +++ b/ZB.MOM.WW.Theme/src/ZB.MOM.WW.Theme/wwwroot/css/layout.css @@ -47,6 +47,20 @@ and force it shown regardless of the
open state (the hamburger toggle is hidden at this width). */ @media (min-width: 992px) { + /* Chromium >=121 wraps a
's content in a generated ::details-content + box that carries content-visibility:hidden while the
is closed. + Because our app-shell ships closed by default (SSR, no JS) and the toggle + is d-lg-none here, that wrapper would (a) hide the rail+page entirely on + lg+ and (b) sit between .app-shell and its rail/page children, collapsing + the flex-lg-row layout into a vertical stack. Dissolving the wrapper with + display:contents removes its box (so content-visibility no longer hides the + content AND rail/page become direct flex children of .app-shell again). + Browsers that don't support ::details-content treat this as an invalid + selector and drop the rule, falling back to the legacy force-show below. */ + .app-shell::details-content { + display: contents; + } + #theme-rail { display: block; position: sticky;