feat(webui): kiosk (展示模式) for chrome-free wall displays (B2)
A session-sticky kiosk mode for showing the dashboard on a wall display: - Entry: `?kiosk=1` URL param (stripped after read) or a top-bar button (toggleable via topbarItems 'kiosk'). - Hides the sidebar + top bar (MainLayout) and any in-content edit entry marked data-kiosk-hide (the overview 编辑布局 toolbar) via an html[data-kiosk] CSS rule. - Exit: Esc key or a dim corner button. Purely cosmetic — never touches auth and issues no token. A new KioskProvider (sessionStorage-backed, mounted under LayoutProvider) owns the state. Completes the B2 dashboard/components batch.
This commit is contained in:
6 files changed
+134
-26
No files matched your search
@@ -210,6 +210,12 @@ html[data-contrast="high"] {
|
||||
--sidebar-border: color-mix(in oklab, var(--foreground) 55%, var(--sidebar-border));
|
||||
}
|
||||
|
||||
/* Kiosk ("展示模式"): hide any in-content edit/config entry points marked with
|
||||
data-kiosk-hide (the chrome itself is removed in MainLayout). */
|
||||
html[data-kiosk="1"] [data-kiosk-hide] {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
/* Reduce motion: a CSS fallback for non-Framer transitions/animations.
|
||||
Framer Motion itself is handled by <MotionConfig reducedMotion>. */
|
||||
html[data-reduce-motion="1"] *,
|
||||
|
||||
Reference in new issue
Block a user