fix(mobile): drop positive display rule that overrode desktop shell's flex layout
This commit is contained in:
@@ -129,14 +129,15 @@
|
||||
}
|
||||
|
||||
/* ─── Form-factor shell visibility ──────────────────────────────────────────
|
||||
* Two shells (desktop + mobile) render to the DOM on every page; CSS reveals
|
||||
* one and hides the other. The data-form-factor body attribute is set
|
||||
* server-side from User-Agent (see src/lib/form-factor.ts). The media-query
|
||||
* fallback handles desktop browsers resized below lg (1024px), or stripped UAs.
|
||||
* Two shells (desktop + mobile) render to the DOM on every page; CSS hides
|
||||
* the inactive one. The data-form-factor body attribute is set server-side
|
||||
* from User-Agent (see src/lib/form-factor.ts). The media-query fallback
|
||||
* handles desktop browsers resized below lg (1024px), or stripped UAs.
|
||||
*
|
||||
* IMPORTANT: only `display: none` rules are emitted — we never set a positive
|
||||
* display, because the desktop shell uses Tailwind's `flex` class which would
|
||||
* be overridden by `display: block` (same specificity, later cascade).
|
||||
*/
|
||||
[data-shell='desktop'] {
|
||||
display: block;
|
||||
}
|
||||
[data-shell='mobile'] {
|
||||
display: none;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user