调整设计师端网页宽度

This commit is contained in:
2026-07-07 09:29:01 +08:00
parent b0d082b37d
commit 5cfb164898
6 changed files with 7 additions and 26 deletions
+2 -2
View File
@@ -1337,7 +1337,7 @@ onBeforeUnmount(() => {
display: grid;
grid-template-columns: 40px minmax(0, 1fr) 40px;
align-items: center;
width: min(100%, 430px);
width: min(100%, var(--frontend-page-max-width));
height: 44px;
margin: -10px auto 8px;
}
@@ -1372,7 +1372,7 @@ onBeforeUnmount(() => {
.auth-page {
width: 100%;
max-width: 430px;
max-width: var(--frontend-page-max-width);
min-height: calc(100svh - 104px);
display: flex;
flex-direction: column;
@@ -1045,8 +1045,6 @@ onUnmounted(() => {
top: 0;
left: 50%;
width: min(100%, var(--frontend-page-max-width), calc(100vw - 48px));
border-top-left-radius: 32px;
border-top-right-radius: 32px;
transform: translateX(-50%);
}
}
@@ -945,11 +945,6 @@ onMounted(loadData)
}
@media (min-width: 768px) {
.vip-topbar {
border-top-left-radius: 32px;
border-top-right-radius: 32px;
}
.plan-grid {
grid-template-columns: repeat(3, minmax(0, 1fr));
}
@@ -48,13 +48,13 @@ describe('web theme governance', () => {
expect(systemMessages).not.toMatch(/--theme-gradient:\s*linear-gradient\([^;]*#[0-9a-fA-F]{3,8}/)
})
it('keeps the web customer surface in a centered phone shell on desktop', () => {
it('keeps the web customer surface in a centered desktop shell', () => {
const app = readSource('App.vue')
const globalStyle = readSource('style.css')
expect(app).toContain('jayu-cloud-phone-frame')
expect(app).toContain('jayu-cloud-phone-frame--hidden-nav')
expect(globalStyle).toMatch(/--frontend-page-max-width:\s*430px/)
expect(globalStyle).toMatch(/--frontend-page-max-width:\s*520px/)
expect(globalStyle).toContain('--theme-neutral: #4A443F;')
expect(globalStyle).toContain('--theme-tertiary: #FDFBF9;')
expect(globalStyle).toContain('.jayu-cloud-phone-frame')