Skip to content

Commit

Permalink
fix(docs): reserve height for breadcrumbs on server render (t3-oss#1712)
Browse files Browse the repository at this point in the history
  • Loading branch information
ReallyBadNews committed Jan 1, 2024
1 parent e34b082 commit de8de3a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion www/src/components/docs/breadCrumbs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export default function BreadCrumbs() {
});

return (
<div className="mb-4 flex items-center gap-2 px-4 text-sm">
<div className="flex items-center gap-2 px-4 text-sm">
<a
href="/"
className="rounded-lg border bg-t3-purple-200/50 p-1 hover:bg-t3-purple-200/75 hover:no-underline dark:border-t3-purple-200/20 dark:bg-t3-purple-200/10 dark:hover:border-t3-purple-200/50"
Expand Down
2 changes: 1 addition & 1 deletion www/src/components/docs/pageContent.astro
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const isRtl = getIsRtlFromLangCode((lang || "en") as KnownLanguageCode);

<article id="article" class="flex w-full max-w-screen-lg flex-col">
{lang && lang !== "en" && <OutdatedDocsBanner path={path} />}
<div>
<div class="mb-4 h-8">
<BreadCrumbs client:only />
</div>
<OnThisPageLinks
Expand Down

0 comments on commit de8de3a

Please sign in to comment.