fix(account): keep 540px drawer profile grid two-column

go
codex 4 weeks ago
parent fee77ac069
commit 0b7a546800

@ -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 <summary> toggles.
It looks like a shadow flash over the compact drawer cards. */

@ -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',

@ -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'}

@ -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, '<input ') === 2,
'Every account information row must contain exactly two inputs.');
}
$assert(str_contains($sources['client_css'], 'width: min(540px, 100%)')
&& str_contains($sources['account_css'], 'grid-template-columns: repeat(2, minmax(0, 1fr))')
&& !str_contains($sources['account_css'], "body.vu-body .vu-compact-grid,\n body.vu-body .vu-recharge-methods { grid-template-columns: 1fr; }")
&& preg_match('/@media \(max-width: 420px\) \{\s*body\.vu-body \.vu-compact-grid \{ grid-template-columns: 1fr; \}/s', $sources['account_css']) === 1,
'The 540px account drawer must stay two-column and collapse profile grids only on narrow phones.');
$assert(preg_match('/CREATE TABLE `user` \((.*?)\) ENGINE=/s', $sources['schema'], $userTable) === 1,
'The fresh user table definition is missing.');

Loading…
Cancel
Save