Skip to content

Commit

Permalink
style: fix position of reading time text
Browse files Browse the repository at this point in the history
  • Loading branch information
aliceoq committed Feb 9, 2024
1 parent 0cb240e commit 62f115a
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 17 deletions.
11 changes: 4 additions & 7 deletions src/pages/docs/tracks/[slug].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,11 @@ const TrackPage: NextPage<Props> = ({
<Box sx={styles.contentContainer}>
<article ref={articleRef}>
<header>
<Breadcrumb breadcrumbList={breadcrumbList} />
<Flex sx={styles.flexContainer}>
<Breadcrumb breadcrumbList={breadcrumbList} />
<Text sx={styles.documentationTitle} className="title">
{serialized.frontmatter?.title}
</Text>
<Text sx={styles.readingTime}>
{intl.formatMessage(
{
Expand All @@ -138,12 +141,6 @@ const TrackPage: NextPage<Props> = ({
)}
</Text>
</Flex>
<Text sx={styles.documentationTitle} className="title">
{serialized.frontmatter?.title}
</Text>
<Text sx={styles.documentationExcerpt}>
{serialized.frontmatter?.excerpt}
</Text>
</header>
<MarkdownRenderer serialized={serialized} />
</article>
Expand Down
8 changes: 4 additions & 4 deletions src/pages/known-issues/[slug].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,11 @@ const KnownIssuePage: NextPage<Props> = ({
<Box sx={styles.contentContainer}>
<article ref={articleRef}>
<header>
<Breadcrumb breadcrumbList={breadcrumbList} />
<Flex sx={styles.flexContainer}>
<Breadcrumb breadcrumbList={breadcrumbList} />
<Text sx={styles.documentationTitle} className="title">
{serialized.frontmatter?.title}
</Text>
<Text sx={styles.readingTime}>
{intl.formatMessage(
{
Expand All @@ -114,9 +117,6 @@ const KnownIssuePage: NextPage<Props> = ({
)}
</Text>
</Flex>
<Text sx={styles.documentationTitle} className="title">
{serialized.frontmatter?.title}
</Text>
<Box sx={styles.divider}></Box>
<Flex sx={styles.detailedInfo}>
<Flex sx={styles.id}>
Expand Down
12 changes: 6 additions & 6 deletions src/styles/documentation-page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,16 +114,16 @@ const divider: SxStyleProp = {
}

const readingTime: SxStyleProp = {
color: '#6b7785',
mb: '24px',
color: '#A1AAB7',
fontSize: '16px',
lineHeight: '18px',
ml: 'auto',
}

const flexContainer: SxStyleProp = {
justifyContent: ['center', 'space-between'],
flexWrap: 'wrap-reverse',
columnGap: '16px',
flexWrap: 'wrap',
flexDirection: 'column',
gap: '16px',
mb: '16px',
}

const detailedInfo: SxStyleProp = {
Expand Down

0 comments on commit 62f115a

Please sign in to comment.