fix(css): container-wide 换成真实存在的 container-x(6 个文件)
`container-wide` 是一个**全仓从未定义**的类名(globals.css 里没有 `.container-wide`),于是这些页面的内容实际贴左边缘、没有栅格。 ADR-0009「追加发现 1」登记为独立动作,但只写了「privacy / terms / not-found 三处」—— 实测是 6 个文件: - privacy / terms(各 2 处) - not-found-content(404 页) - error.tsx - components/ui/skeleton.tsx 的 SkeletonHero - products/standalone/[id]/client.tsx(4 处) 同时摘掉 4 处 `prose` / `prose-lg`:本仓**没装** @tailwindcss/typography, 这两个类同样是死类名。排版规则本身属设计裁定,登记为已知缺口 (docs/acceptance/qa-tracker.md §18.6),此处只删死类名、保留 max-w-none。 可见变化(实测):`/privacy` 页高 2402px → 2444px。 视觉基线随重采(见后续提交)。
This commit is contained in:
1 parent
fb14bf70d3
commit
31f0cfa3a4
6 files changed
+15
-15
No files matched your search
@@ -71,7 +71,7 @@ export function StandaloneProductClient({ item }: StandaloneProductClientProps)
|
||||
|
||||
{status === 'coming-soon' ? (
|
||||
<section className="bg-bg-primary py-16 lg:py-20">
|
||||
<div className="container-wide">
|
||||
<div className="container-x">
|
||||
<motion.div
|
||||
initial={{ opacity: 0, y: 20 }}
|
||||
whileInView={{ opacity: 1, y: 0 }}
|
||||
@@ -129,7 +129,7 @@ export function StandaloneProductClient({ item }: StandaloneProductClientProps)
|
||||
) : (
|
||||
<>
|
||||
<section className="bg-bg-primary py-16 lg:py-20">
|
||||
<div className="container-wide">
|
||||
<div className="container-x">
|
||||
<div className="grid grid-cols-1 gap-12 lg:grid-cols-2">
|
||||
<motion.div
|
||||
initial={{ opacity: 0, x: -20 }}
|
||||
@@ -164,7 +164,7 @@ export function StandaloneProductClient({ item }: StandaloneProductClientProps)
|
||||
|
||||
{technicalParameters.length > 0 && (
|
||||
<section className="bg-bg-secondary py-16 lg:py-20">
|
||||
<div className="container-wide">
|
||||
<div className="container-x">
|
||||
<motion.div
|
||||
initial={{ opacity: 0, y: 20 }}
|
||||
whileInView={{ opacity: 1, y: 0 }}
|
||||
@@ -207,7 +207,7 @@ export function StandaloneProductClient({ item }: StandaloneProductClientProps)
|
||||
|
||||
{complianceCertifications.length > 0 && (
|
||||
<section className="bg-bg-primary py-16 lg:py-20">
|
||||
<div className="container-wide">
|
||||
<div className="container-x">
|
||||
<motion.div
|
||||
initial={{ opacity: 0, y: 20 }}
|
||||
whileInView={{ opacity: 1, y: 0 }}
|
||||
|
||||
+1
-1
@@ -19,7 +19,7 @@ export default function Error({
|
||||
|
||||
return (
|
||||
<div className="min-h-screen bg-[var(--color-bg-primary)] flex items-center justify-center">
|
||||
<div className="container-wide px-4 py-20">
|
||||
<div className="container-x px-4 py-20">
|
||||
<div className="max-w-2xl mx-auto text-center">
|
||||
<div className="mb-8">
|
||||
<div className="w-24 h-24 bg-[var(--color-brand-bg)] rounded-full flex items-center justify-center mx-auto mb-6">
|
||||
|
||||
@@ -8,7 +8,7 @@ import { ArrowLeft, Search } from 'lucide-react';
|
||||
export function NotFoundContent() {
|
||||
return (
|
||||
<div className="min-h-screen bg-[var(--color-bg-primary)] flex items-center justify-center">
|
||||
<div className="container-wide px-4 py-20">
|
||||
<div className="container-x px-4 py-20">
|
||||
<div className="max-w-xl mx-auto text-center">
|
||||
<div className="mb-8">
|
||||
<h1 className="text-8xl sm:text-[120px] font-bold text-brand-ink/80 leading-none mb-4">
|
||||
|
||||
@@ -13,7 +13,7 @@ export const revalidate = 3600;
|
||||
|
||||
function PrivacyContent() {
|
||||
return (
|
||||
<div className="prose prose-lg max-w-none">
|
||||
<div className="max-w-none">
|
||||
<section className="mb-12">
|
||||
<h2 className="text-2xl font-bold text-[var(--color-text-primary)] mb-4">引言</h2>
|
||||
<p className="text-[var(--color-text-muted)] leading-relaxed mb-4">
|
||||
@@ -250,7 +250,7 @@ export default async function PrivacyPolicyPage() {
|
||||
return (
|
||||
<div className="min-h-screen bg-[var(--color-bg-primary)]">
|
||||
<div className="bg-gradient-to-br from-[var(--color-brand)] via-brand/80 to-[var(--color-brand-section)] py-20">
|
||||
<div className="container-wide">
|
||||
<div className="container-x">
|
||||
<h1 className="text-4xl md:text-5xl font-bold text-white mb-4">
|
||||
{heroTitle}
|
||||
</h1>
|
||||
@@ -260,11 +260,11 @@ export default async function PrivacyPolicyPage() {
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div className="container-wide py-16">
|
||||
<div className="container-x py-16">
|
||||
<div className="max-w-4xl">
|
||||
{cmsContent ? (
|
||||
<div
|
||||
className="prose prose-lg max-w-none"
|
||||
className="max-w-none"
|
||||
dangerouslySetInnerHTML={{ __html: sanitizeRichText(cmsContent) }}
|
||||
/>
|
||||
) : (
|
||||
|
||||
@@ -13,7 +13,7 @@ export const revalidate = 3600;
|
||||
|
||||
function TermsContent() {
|
||||
return (
|
||||
<div className="prose prose-lg max-w-none">
|
||||
<div className="max-w-none">
|
||||
<section className="mb-12">
|
||||
<h2 className="text-2xl font-bold text-[var(--color-text-primary)] mb-4">引言</h2>
|
||||
<p className="text-[var(--color-text-muted)] leading-relaxed mb-4">
|
||||
@@ -195,7 +195,7 @@ export default async function TermsOfServicePage() {
|
||||
return (
|
||||
<div className="min-h-screen bg-[var(--color-bg-primary)]">
|
||||
<div className="bg-gradient-to-br from-[var(--color-brand)] via-brand/80 to-[var(--color-brand-section)] py-20">
|
||||
<div className="container-wide">
|
||||
<div className="container-x">
|
||||
<h1 className="text-4xl md:text-5xl font-bold text-white mb-4">
|
||||
{heroTitle}
|
||||
</h1>
|
||||
@@ -205,11 +205,11 @@ export default async function TermsOfServicePage() {
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div className="container-wide py-16">
|
||||
<div className="container-x py-16">
|
||||
<div className="max-w-4xl">
|
||||
{cmsContent ? (
|
||||
<div
|
||||
className="prose prose-lg max-w-none"
|
||||
className="max-w-none"
|
||||
dangerouslySetInnerHTML={{ __html: sanitizeRichText(cmsContent) }}
|
||||
/>
|
||||
) : (
|
||||
|
||||
@@ -135,7 +135,7 @@ export function SkeletonHero({ className }: SkeletonHeroProps) {
|
||||
aria-label="页面标题加载中"
|
||||
aria-busy="true"
|
||||
>
|
||||
<div className="container-wide max-w-3xl space-y-6">
|
||||
<div className="container-x max-w-3xl space-y-6">
|
||||
<Skeleton className="h-4 w-24" />
|
||||
<Skeleton className="h-12 md:h-14 w-full max-w-2xl" />
|
||||
<Skeleton className="h-6 w-full max-w-xl" />
|
||||
|
||||
Reference in new issue
Block a user