Skip to content

Commit afa87e2

Browse files
committed
fix: style
1 parent 07237ff commit afa87e2

2 files changed

Lines changed: 10 additions & 8 deletions

File tree

apps/docs/src/containers/theme-studio/preview-components/mail-preview.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -396,18 +396,18 @@ export function MailPreview(): React.ReactElement {
396396
<Split min={320} max={360} defaultSize="42%" className="theme-studio__mail-split">
397397
<Card className="theme-studio__mail-panel">
398398
<Card.Content>
399-
<div className="theme-studio__mail-panel-head">
399+
<Flex justify="space-between" className="theme-studio__mail-panel-head">
400400
<Heading level={3}>{folderLabels[activeFolder]}</Heading>
401401
<Segmented
402-
size="sm"
402+
size="md"
403403
value={activeFilter}
404404
options={[
405405
{ label: 'All mail', value: 'all' },
406406
{ label: 'Unread', value: 'unread' },
407407
]}
408408
onChange={(value) => setActiveFilter(String(value) as MailFilter)}
409409
/>
410-
</div>
410+
</Flex>
411411

412412
<div className="theme-studio__mail-search-wrap">
413413
<Input

apps/docs/src/containers/theme-studio/theme-studio.scss

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1756,22 +1756,24 @@
17561756
}
17571757

17581758
.theme-studio__mail-panel-head {
1759-
justify-content: space-between;
1760-
align-items: center;
1761-
gap: 10px;
1762-
flex-wrap: wrap;
1763-
padding: 12px 16px;
1759+
padding: 20px 16px;
17641760
border-bottom: 1px solid var(--editor-border);
17651761
}
17661762

17671763
.theme-studio__mail-panel-head .ty-typography {
17681764
margin: 0;
1765+
flex: 1 1 auto;
1766+
min-width: 0;
17691767
font-size: 20px;
17701768
font-weight: 700;
17711769
line-height: 1.4;
17721770
letter-spacing: -0.01em;
17731771
}
17741772

1773+
.theme-studio__mail-panel-head .ty-segmented {
1774+
flex: 0 0 auto;
1775+
}
1776+
17751777
.theme-studio__mail-search-wrap {
17761778
padding: 12px 16px;
17771779
}

0 commit comments

Comments
 (0)