Skip to content

Commit

Permalink
fix: Format some inline styles as strings to try and avoid hydration …
Browse files Browse the repository at this point in the history
…errors (#9719)
  • Loading branch information
ryan953 committed Apr 16, 2024
1 parent 54b6a8a commit f982fe9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/components/breadcrumbs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export function Breadcrumbs() {
}

return (
<ul className="breadcrumb" style={{margin: 0}}>
<ul className="breadcrumb" style={{margin: '0px'}}>
{nodes.map(n => {
const to = n.path === '/' ? n.path : `/${n.path}/`;
return (
Expand Down
2 changes: 1 addition & 1 deletion src/components/navbarClient.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export function NavbarClient({platforms, currentPlatform}: Props) {
<Search path={pathname} platforms={searchPlatforms} />
</div>
<div className="collapse navbar-collapse content-max" id="navbar-menu">
<Nav className="justify-content-end" style={{flex: 1}}>
<Nav className="justify-content-end" style={{flex: '1 1 0%'}}>
<NavbarPlatformDropdown
platforms={platforms}
currentPlatform={currentPlatform}
Expand Down
2 changes: 1 addition & 1 deletion src/components/pageGrid.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export function PageGrid({header}: Props) {
.filter(c => c.frontmatter.title)
.map(n => (
<li key={n.path} style={{marginBottom: '1rem'}}>
<h4 style={{marginBottom: 0}}>
<h4 style={{marginBottom: '0px'}}>
<Link href={'/' + n.path}>{n.frontmatter.title}</Link>
</h4>
{n.frontmatter.description && <p>{n.frontmatter.description}</p>}
Expand Down

0 comments on commit f982fe9

Please sign in to comment.