From 56b28045c02bdf5db2071d0e533566c248faa40f Mon Sep 17 00:00:00 2001 From: admin Date: Wed, 30 Sep 2026 23:53:26 +0800 Subject: [PATCH] fix: align ticket summary and referral hint --- web/public/cloud/account.css | 107 ++++++++++++++++++-- web/resources/views/venix/layout_assets.tpl | 2 +- web/resources/views/venix/user/ticket.tpl | 6 +- 3 files changed, 105 insertions(+), 10 deletions(-) diff --git a/web/public/cloud/account.css b/web/public/cloud/account.css index 8c58db55..7810d8f3 100644 --- a/web/public/cloud/account.css +++ b/web/public/cloud/account.css @@ -207,6 +207,57 @@ body.vu-body :where(.vu-hero, .vu-edit-hero, margin-bottom: 22px; } +/* Keep the support overview card readable even when the shared user-home + stylesheet is not loaded. Each metric gets a stable label/value column and + a small accent rail instead of collapsing into an unstyled text stack. */ +body.vu-body .vu-support-summary { + display: grid; + grid-template-rows: repeat(3, minmax(0, 1fr)); + align-content: stretch; + gap: 0; + padding: 16px 22px; +} +body.vu-body .vu-support-summary > div { + position: relative; + display: grid; + grid-template-columns: minmax(0, 1fr) auto; + align-items: center; + gap: 14px; + min-height: 72px; + padding: 14px 0 14px 14px; + border-bottom: 1px solid var(--vu-border); +} +body.vu-body .vu-support-summary > div::before { + position: absolute; + top: 50%; + left: 0; + width: 4px; + height: 28px; + border-radius: 999px; + background: var(--vu-brand); + content: ""; + transform: translateY(-50%); +} +body.vu-body .vu-support-summary > div:nth-child(2)::before { background: #36b998; } +body.vu-body .vu-support-summary > div:nth-child(3)::before { background: #aab7c2; } +body.vu-body .vu-support-summary > div:last-child { border-bottom: 0; } +body.vu-body .vu-support-summary > .is-open strong { color: var(--vu-brand-strong); } +body.vu-body .vu-support-summary > .is-closed strong { color: var(--vu-muted); } +body.vu-body .vu-support-summary > div > span { + color: var(--vu-muted); + font-size: 12px; + font-weight: 750; +} +body.vu-body .vu-support-summary > div > strong { + min-width: 2ch; + color: var(--vu-text); + font-size: 28px; + font-weight: 800; + font-variant-numeric: tabular-nums; + line-height: 1; + text-align: right; +} + body.vu-body :where(.vu-hero-main, .vu-edit-hero-main, .vu-invite-hero-main, .vu-pay-hero-main, .vu-profile-hero-main, .vu-support-hero-main) { @@ -1330,6 +1381,29 @@ body.venix-auth .auth-modal-actions { body.vu-body :where(.vu-edit-layout, .vu-invite-layout, .vu-pay-layout, .vu-profile-layout, .vu-support-detail-layout, .vu-support-editor-layout) { grid-template-columns: 1fr; } + body.vu-body .vu-support-summary { + grid-template-columns: repeat(3, minmax(0, 1fr)); + grid-template-rows: none; + } + body.vu-body .vu-support-summary > div { + grid-template-columns: 1fr; + justify-items: center; + min-height: 76px; + padding: 12px 10px; + border-right: 1px solid var(--vu-border); + border-bottom: 0; + text-align: center; + } + body.vu-body .vu-support-summary > div::before { + top: 12px; + right: 0; + bottom: 12px; + left: auto; + width: 3px; + height: auto; + transform: none; + } + body.vu-body .vu-support-summary > div:last-child { border-right: 0; } } @media (max-width: 640px) { @@ -1351,6 +1425,30 @@ body.venix-auth .auth-modal-actions { body.vu-body .vu-ga-setup { grid-template-columns: 1fr; } body.vu-body .vu-support-ticket { align-items: flex-start; flex-direction: column; } body.vu-body .vu-support-ticket-side { width: 100%; justify-content: space-between; } + body.vu-body .vu-support-summary { + grid-template-columns: 1fr; + grid-template-rows: repeat(3, minmax(0, auto)); + padding: 14px 18px; + } + body.vu-body .vu-support-summary > div { + grid-template-columns: minmax(0, 1fr) auto; + justify-items: stretch; + min-height: 62px; + padding: 11px 0 11px 12px; + border-right: 0; + border-bottom: 1px solid var(--vu-border); + text-align: left; + } + body.vu-body .vu-support-summary > div::before { + top: 50%; + right: auto; + bottom: auto; + left: 0; + width: 3px; + height: 24px; + transform: translateY(-50%); + } + body.vu-body .vu-support-summary > div:last-child { border-bottom: 0; } body.vu-body .vu-support-message-item { padding: 17px; } body.vu-body .vu-table-footer { align-items: flex-start; flex-direction: column; } body.vu-body .vu-modal, @@ -1731,9 +1829,9 @@ body.vu-body .vu-compact-panel-heading h2 { margin: 0; color: var(--vu-text); fo body.vu-body .vu-compact-panel-heading + :where(.vu-compact-form, .vu-compact-hint, .vu-compact-link-row, .vu-inline-empty) { margin-right: 14px; margin-left: 14px; } body.vu-body .vu-compact-panel-heading + .vu-compact-form { margin-top: 14px; margin-bottom: 14px; } body.vu-body .vu-compact-panel-heading + .vu-compact-hint { margin-top: 12px; } -body.vu-body .vu-referral-hint { display: flex; align-items: flex-start; gap: 7px; width: auto; max-width: calc(100% - 40px); margin: 12px 20px 0; padding: 8px 10px; box-sizing: border-box; background: #f7fbfb; border-radius: 8px; } -body.vu-body .vu-referral-hint i { flex: 0 0 auto; margin-top: 1px; color: var(--vu-brand); font-size: 14px; } -body.vu-body .vu-referral-hint span { min-width: 0; } +body.vu-body .vu-referral-hint { display: flex; align-items: center; gap: 7px; width: auto; max-width: calc(100% - 28px); margin: 12px 14px 0; padding: 9px 10px; box-sizing: border-box; background: #f7fbfb; border-radius: 8px; line-height: 1.5; } +body.vu-body .vu-referral-hint i { flex: 0 0 auto; margin-top: 0; color: var(--vu-brand); font-size: 14px; line-height: 1; } +body.vu-body .vu-referral-hint span { min-width: 0; line-height: 1.5; } body.vu-body .vu-compact-form { display: grid; align-items: end; gap: 11px; } body.vu-body .vu-compact-form > .vu-btn { justify-self: start; } body.vu-body .vu-compact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } @@ -1741,9 +1839,6 @@ body.vu-body .vu-compact-field { display: grid; gap: 6px; min-width: 0; color: v body.vu-body .vu-compact-field .vu-input, body.vu-body .vu-factor-line .vu-input { min-height: 40px; padding: 8px 11px; border-radius: 8px; font-size: 12px; } body.vu-body .vu-compact-hint { margin: 0; color: var(--vu-muted); font-size: 10px; line-height: 1.55; } -/* Keep the referral explanation aligned with the drawer content after the - shared compact-hint reset above. */ -body.vu-body .vu-referral-hint { margin: 12px 20px 0; } body.vu-body .vu-inline-status, body.vu-body .vu-inline-empty { display: flex; diff --git a/web/resources/views/venix/layout_assets.tpl b/web/resources/views/venix/layout_assets.tpl index 36dfbd4b..b3ca893c 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='2026093024' scope='global'} +{assign var=venix_asset_version value='2026093025' scope='global'} diff --git a/web/resources/views/venix/user/ticket.tpl b/web/resources/views/venix/user/ticket.tpl index 15c2ff6e..82cc4a92 100755 --- a/web/resources/views/venix/user/ticket.tpl +++ b/web/resources/views/venix/user/ticket.tpl @@ -16,9 +16,9 @@

订单、实例、套餐、余额和账户安全问题都可以在这里提交。请附上相关实例和截图,方便我们更快定位。