fix: keep user topbar visible while scrolling

go
codex 4 weeks ago
parent 4c0db58a16
commit bb577f0bab

@ -27,6 +27,8 @@
.panel-sidebar-bottom .sidebar-link:hover { background: #1a3445; color: #d0eeee; }
.panel-admin-link { margin-bottom: 2px; }
.panel-logout-link:hover { color: #ffc1c8 !important; background: rgba(208, 66, 80, .1) !important; }
.panel-topbar { position: sticky; top: 0; z-index: 25; }
.main-area > .content .template-catalog { isolation: isolate; }
.panel-topbar-logout { text-decoration: none; }
/* Announcements share the user shell without loading administrator styles. */
.panel-announcements-close.button { flex: 0 0 44px; width: 44px; height: 44px; min-height: 44px; padding: 0; font-size: 22px; }

@ -1,2 +1,2 @@
{* Shared Venix CSS/JS cache key. Increment whenever a shared browser asset changes. *}
{assign var=venix_asset_version value='2026101903' scope='global'}
{assign var=venix_asset_version value='2026102001' scope='global'}

@ -87,6 +87,12 @@ $assert(str_contains($cloudShell, "file='user/panel_sidebar.tpl'")
&& str_contains($userLayout, "file='user/panel_sidebar.tpl'"), 'Cloud and account pages must share one sidebar partial');
$assert(str_contains($cloudShell, "file='user/panel_topbar.tpl'")
&& str_contains($userLayout, "file='user/panel_topbar.tpl'"), 'Cloud and account pages must share one topbar partial');
$assert(preg_match('/\.panel-topbar\s*\{(?=[^}]*position:\s*sticky)(?=[^}]*top:\s*0)(?=[^}]*z-index:\s*[1-9][0-9]*)[^}]*\}/s',
$clientStyles) === 1,
'The shared user topbar must remain visible while the page content scrolls');
$assert(preg_match('/\.main-area\s*>\s*\.content\s+\.template-catalog\s*\{[^}]*isolation:\s*isolate[^}]*\}/s',
$clientStyles) === 1,
'Template picker layers must remain below the sticky shared topbar');
$assert(!str_contains($cloudShell, '<aside class="sidebar"')
&& !str_contains($userLayout, 'vu-sidebar'), 'A duplicate user sidebar shell remains active');
$assert(str_contains($userLayout, '/cloud/client.css'), 'Account pages must load the shared VM-panel navigation styles');

Loading…
Cancel
Save