Skip to content

Commit

Permalink
🎨 Add flex-grow for article header (#305)
Browse files Browse the repository at this point in the history
Co-authored-by: Rowan Cockett <[email protected]>
  • Loading branch information
stevejpurves and rowanc1 authored Dec 20, 2023
1 parent a0cd88e commit e84b56d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/tasty-lemons-switch.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@myst-theme/site': patch
---

Flex grow for article header
5 changes: 4 additions & 1 deletion packages/site/src/components/Headers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,10 @@ export function ArticleHeader({
<FrontmatterBlock
frontmatter={rest}
authorStyle="list"
className={classNames({ 'pt-4 px-6': frontmatter?.banner, ...positionFrontmatter })}
className={classNames('flex-grow', {
'pt-4 px-6': frontmatter?.banner,
...positionFrontmatter,
})}
hideBadges
hideExports
/>
Expand Down

0 comments on commit e84b56d

Please sign in to comment.