调整设计师端网页宽度

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
@@ -270,8 +270,6 @@ const handleNavClick = (tab: string) => {
left: 50%;
width: var(--frontend-page-max-width);
max-width: calc(100vw - 48px);
border-bottom-right-radius: 32px;
border-bottom-left-radius: 32px;
transform: translateX(-50%) translateZ(0);
}
}
+3 -13
View File
@@ -24,7 +24,7 @@
--border-radius-base: 10px;
--border-radius-large: 30px;
--frontend-min-safe-width: 320px;
--frontend-page-max-width: 430px;
--frontend-page-max-width: 520px;
--frontend-content-max-width: 1120px;
--admin-content-max-width: 1440px;
}
@@ -292,6 +292,7 @@ body {
.app-container--phone-shell {
align-items: center;
padding: 0;
width: 100vw;
}
.mobile-container {
@@ -303,9 +304,7 @@ body {
min-height: 100vh;
margin: 0 auto;
overflow: clip;
border: 1px solid rgba(212, 194, 195, 0.72);
border-radius: 32px;
box-shadow: 0 28px 80px rgba(74, 68, 63, 0.14);
box-shadow: 0 0 0 1px rgba(50, 43, 34, 0.04), 0 24px 80px rgba(58, 48, 34, 0.12);
}
.jayu-cloud-phone-frame > .bottom-nav,
@@ -327,16 +326,7 @@ body {
top: 0;
}
.jayu-cloud-phone-frame > .page-content .header,
.jayu-cloud-phone-frame > .page-content .gallery-header,
.jayu-cloud-phone-frame > .page-content .order-header {
border-top-left-radius: 32px;
border-top-right-radius: 32px;
}
.jayu-cloud-phone-frame > .bottom-nav {
bottom: 0;
border-bottom-right-radius: 32px;
border-bottom-left-radius: 32px;
}
}
+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')