Skip to content

Commit 7b51b2b

Browse files
committed
make it look like a multiline spectrum breadcrumb
1 parent 7f299fc commit 7b51b2b

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

packages/dev/s2-docs/src/Layout.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,11 @@ const components = {
6767
const subPageComponents = (previousPage?: Page) => ({
6868
...components,
6969
h1: ({children, ...props}) => (
70-
<div className={style({display: 'flex', alignItems: 'center', gap: 8})}>
71-
<TitleLink href="./index.html">{previousPage?.exports?.title}</TitleLink>
72-
<ChevronRightIcon styles={iconStyle({size: 'XL'})} />
70+
<div className={style({display: 'flex', flexDirection: 'column', gap: 4})}>
71+
<div className={style({display: 'flex', alignItems: 'center', gap: 8})}>
72+
<TitleLink href="./index.html">{previousPage?.exports?.title}</TitleLink>
73+
<ChevronRightIcon styles={iconStyle({size: 'M'})} />
74+
</div>
7375
<h1 {...props} id="top" style={{'--width-per-em': getTextWidth(children)} as any} className={h1}>{children}</h1>
7476
</div>
7577
)

packages/dev/s2-docs/src/Link.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,11 @@ export function CodeLink(props: RACLinkProps) {
5050

5151
const titleLink = style({
5252
...focusRing(),
53-
font: 'heading-3xl',
53+
font: 'heading',
5454
fontSize: {
5555
// On mobile, adjust heading to fit in the viewport, and clamp between a min and max font size.
5656
default: 'clamp(35px, (100vw - 32px) / var(--width-per-em), 55px)',
57-
lg: 'heading-3xl'
57+
lg: 'heading'
5858
},
5959
marginY: 0,
6060
color: {

0 commit comments

Comments
 (0)