From 0b7a546800389698a3ecf5c8d4388ba33eef03aa Mon Sep 17 00:00:00 2001 From: codex Date: Sat, 24 Oct 2026 01:16:08 +0800 Subject: [PATCH] fix(account): keep 540px drawer profile grid two-column --- web/public/cloud/account.css | 5 ++++- web/public/cloud/app.js | 2 +- web/resources/views/venix/layout_assets.tpl | 2 +- web/tests/UserProfileTest.php | 7 +++++++ 4 files changed, 13 insertions(+), 3 deletions(-) diff --git a/web/public/cloud/account.css b/web/public/cloud/account.css index c7a07160..d9ccef48 100644 --- a/web/public/cloud/account.css +++ b/web/public/cloud/account.css @@ -1819,7 +1819,6 @@ body.vu-embedded .vu-drawer-page { max-width: none; padding-top: 0; } body.vu-body .vu-drawer-state, body.vu-body .vu-text-action { margin-top: 4px; } body.vu-body .vu-promotion-balance { flex: 1 0 100%; display: flex; align-items: baseline; gap: 6px; margin: 6px 0 0 53px; text-align: left; } - body.vu-body .vu-compact-grid, body.vu-body .vu-recharge-methods { grid-template-columns: 1fr; } body.vu-body .vu-compact-panel-heading { flex-wrap: wrap; } body.vu-body .vu-panel-badge { max-width: 100%; white-space: normal; } @@ -1833,6 +1832,10 @@ body.vu-embedded .vu-drawer-page { max-width: none; padding-top: 0; } body.vu-body details.vu-compact-panel > summary { grid-template-columns: auto minmax(0, 1fr) auto; } } +@media (max-width: 420px) { + body.vu-body .vu-compact-grid { grid-template-columns: 1fr; } +} + @media (pointer: coarse) { /* iOS/Android apply a transient tap highlight while toggles. It looks like a shadow flash over the compact drawer cards. */ diff --git a/web/public/cloud/app.js b/web/public/cloud/app.js index 729e228e..57039b74 100644 --- a/web/public/cloud/app.js +++ b/web/public/cloud/app.js @@ -1,4 +1,4 @@ -import { initializeTaskCenter } from './task-center.js?v=2026102406'; +import { initializeTaskCenter } from './task-center.js?v=2026102407'; const pageModules = Object.freeze({ instances: '/cloud/instances.js', diff --git a/web/resources/views/venix/layout_assets.tpl b/web/resources/views/venix/layout_assets.tpl index 3768b472..fb1f2699 100644 --- a/web/resources/views/venix/layout_assets.tpl +++ b/web/resources/views/venix/layout_assets.tpl @@ -1,2 +1,2 @@ {* Shared Venix CSS/JS cache key. Increment whenever a shared browser asset changes. *} -{assign var=venix_asset_version value='2026102406' scope='global'} +{assign var=venix_asset_version value='2026102407' scope='global'} diff --git a/web/tests/UserProfileTest.php b/web/tests/UserProfileTest.php index 8d368514..27eb694c 100644 --- a/web/tests/UserProfileTest.php +++ b/web/tests/UserProfileTest.php @@ -87,6 +87,8 @@ $sources = [ 'register' => file_get_contents($root . '/resources/views/venix/auth/register.tpl'), 'drawer' => file_get_contents($root . '/resources/views/venix/user/edit.tpl'), 'runtime' => file_get_contents($root . '/public/theme/venix/js/user-home.js'), + 'account_css' => file_get_contents($root . '/public/cloud/account.css'), + 'client_css' => file_get_contents($root . '/public/cloud/client.css'), 'schema' => file_get_contents($root . '/sql/ss.sql'), 'migration' => file_get_contents($root . '/sql/user_profile.sql'), ]; @@ -115,6 +117,11 @@ foreach ($profileRows[1] as $profileRow) { $assert(substr_count($profileRow, '