修复:对齐用户端店铺页面
This commit is contained in:
@@ -309,7 +309,7 @@ const earliestBookableText = computed(() => shopInfo.value?.businessHours || '
|
||||
const heroMaxHeightRatio = computed(() => {
|
||||
const ratios = productImages.value
|
||||
.map(url => productImageRatios.value[url])
|
||||
.filter((ratio): ratio is number => Number.isFinite(ratio) && ratio > 0)
|
||||
.filter((ratio): ratio is number => typeof ratio === 'number' && Number.isFinite(ratio) && ratio > 0)
|
||||
return ratios.length ? Math.max(...ratios) : 1.25
|
||||
})
|
||||
/** heroSectionStyle lets shorter images center inside the tallest-image frame. */
|
||||
@@ -540,6 +540,7 @@ onMounted(() => {
|
||||
--detail-hero-scrim: color-mix(in srgb, var(--theme-neutral) 20%, transparent);
|
||||
--detail-shadow: 0 20px 44px color-mix(in srgb, var(--theme-neutral) 14%, transparent);
|
||||
--detail-shadow-soft: 0 12px 30px color-mix(in srgb, var(--theme-neutral) 8%, transparent);
|
||||
--detail-shell-width: var(--frontend-page-max-width);
|
||||
box-sizing: border-box;
|
||||
min-height: 100vh;
|
||||
overflow-x: hidden;
|
||||
@@ -563,7 +564,7 @@ onMounted(() => {
|
||||
display: grid;
|
||||
grid-template-columns: 44px minmax(0, 1fr) 44px;
|
||||
gap: 10px;
|
||||
width: min(100%, 460px);
|
||||
width: min(100%, var(--detail-shell-width));
|
||||
margin: 0 auto;
|
||||
align-items: center;
|
||||
padding: calc(10px + env(safe-area-inset-top)) 16px 10px;
|
||||
@@ -632,7 +633,7 @@ onMounted(() => {
|
||||
}
|
||||
|
||||
.detail-content {
|
||||
width: min(100%, 460px);
|
||||
width: min(100%, var(--detail-shell-width));
|
||||
margin: 0 auto;
|
||||
padding: 0 0 calc(112px + env(safe-area-inset-bottom));
|
||||
}
|
||||
@@ -1102,7 +1103,7 @@ onMounted(() => {
|
||||
|
||||
.footer-inner {
|
||||
display: grid;
|
||||
max-width: 430px;
|
||||
max-width: var(--detail-shell-width);
|
||||
grid-template-columns: 54px minmax(0, 1fr) minmax(0, 1.18fr);
|
||||
gap: 10px;
|
||||
margin: 0 auto;
|
||||
|
||||
Reference in New Issue
Block a user