Skip to content

Commit 9b99286

Browse files
authored
Merge pull request #19478 from mozilla/split-layout-width-reduction
fix(cms): Add max-width for split layout content
2 parents ccc259d + d08448e commit 9b99286

2 files changed

Lines changed: 17 additions & 3 deletions

File tree

packages/fxa-settings/src/components/AppLayout/index.stories.tsx

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,21 @@ export const WithCmsSplitLayoutBackgroundImageHeaderBackground = () => {
195195
return (
196196
<AppLayout cmsInfo={mockCmsInfo} splitLayout>
197197
<h1 className="card-header">Header content</h1>
198-
<p className="mt-2">Paragraph content here</p>
198+
<p className="mt-2">
199+
Lots of text so we can see the max-width! Croissant cookie sesame snaps
200+
cake muffin chupa chups jelly-o candy. Chocolate bar chocolate sesame
201+
snaps fruitcake pudding danish. Donut marzipan shortbread jelly-o
202+
shortbread danish. Topping biscuit macaroon donut sugar plum candy
203+
dragée. Tart chupa chups jelly-o gummies oat cake dessert chocolate
204+
sweet roll. Danish pie cookie candy candy canes cotton candy gummi
205+
bears. Cake jelly-o cake cotton candy powder tart. Pastry tiramisu candy
206+
canes pie shortbread. Bear claw carrot cake fruitcake donut icing cotton
207+
candy. Donut ice cream chocolate bar pie halvah cake lemon drops muffin.
208+
Bonbon brownie biscuit cake cake jujubes.
209+
</p>
210+
<div className="flex mt-5">
211+
<button className="cta-primary cta-xl">I am a button</button>
212+
</div>
199213
</AppLayout>
200214
);
201215
};

packages/fxa-settings/src/components/AppLayout/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ export const AppLayout = ({
147147
}
148148
/>
149149
<main className="mobileLandscape:items-center tablet:flex-1 tablet:bg-white py-8 px-6 tablet:px-10 mobileLandscape:py-9 tablet:ml-auto flex justify-center flex-1">
150-
<section>{children}</section>
150+
<section className="max-w-120">{children}</section>
151151
</main>
152152
</div>
153153
)}
@@ -157,7 +157,7 @@ export const AppLayout = ({
157157
<div className="fixed bottom-6 left-6 z-10">
158158
<LocaleToggle />
159159
</div>
160-
</footer>
160+
</footer>
161161
)}
162162
<div id="body-bottom" className="w-full block mobileLandscape:hidden" />
163163
</>

0 commit comments

Comments
 (0)