Commit c6aeb29
refactor: dedupe nested page-width and scope checkout layout overrides
The frontStore Base already wraps the content area in `.page-width`
(Base.tsx `<Area id="content" className="page-width">`), so page components
that re-applied `page-width` were nesting it — a second max-width + 22px
padding that indented their content past the rest of the page. Drop the
redundant `page-width` from the frontStore page components and shared
components that render inside the content area: category/product/search,
blog views, cart/checkout, customer account + order pages, CMS page + 404,
breadcrumb, and CategoryInfo. The admin 404 dropped it too — `.page-width`
is defined only in the frontStore global.scss, so it was a no-op there.
Scope the checkout `.wrapper` header/footer overrides to their route body
class (`.checkout` / `.checkoutSuccess`) so they stop leaking to every page
in dev, where all route CSS is injected globally by style-loader (prod
already extracts CSS per route).
Section `boxed` now caps at the theme's 1200px page width and centers, so a
section stays visibly boxed even when dropped into a full-bleed area instead
of relying on an ancestor container to constrain it.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent c9f67e4 commit c6aeb29
24 files changed
Lines changed: 80 additions & 59 deletions
File tree
- packages/evershop/src
- components/frontStore/catalog
- modules
- base/pages/frontStore/all
- blog/pages/frontStore
- blogCategoryView
- blogHome
- blogPostView
- blogTagView
- catalog/pages/frontStore
- catalogSearch
- categoryView
- productView
- checkout/pages/frontStore
- cart
- checkoutSuccess
- checkout
- cms
- components
- pages
- admin/adminNotFound
- frontStore
- cmsPageView
- notFound
- customer/pages/frontStore
- account
- login
- orderList
- orderTracking
- orderView
- register
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
| 41 | + | |
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
| 26 | + | |
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| |||
0 commit comments