Skip to content

Commit

Permalink
f it
Browse files Browse the repository at this point in the history
  • Loading branch information
icco committed Oct 29, 2023
1 parent dadf785 commit 8db9a55
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 14 deletions.
24 changes: 11 additions & 13 deletions components/Breadcrumbs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,16 @@ export const Breadcrumbs = () => {
return !!piece;
});
return (
<nav className="flex mr-8">
<ol className="flex flex-wrap justify-end m-0 p-0">
{pieces.map((piece: string, index: number) => {
return (
<li key={piece} className="before:content-['/'] pr-2 text-muted last:text-link ">
<Link className="text-inherit" href={`/${pieces.slice(0, index + 1).join("/")}`}>
{piece}
</Link>
</li>
);
})}
</ol>
</nav>
<ol className="flex flex-wrap justify-end m-0 p-1 content-center">
{pieces.map((piece: string, index: number) => {
return (
<li key={piece} className="before:content-['/'] pr-2 text-muted last:text-link ">
<Link className="text-inherit" href={`/${pieces.slice(0, index + 1).join("/")}`}>
{piece}
</Link>
</li>
);
})}
</ol>
);
};
2 changes: 1 addition & 1 deletion components/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export function SmallHeader() {
</Link>
</div>
<div className="flex-grow"></div>
<div className="flex-none">
<div className="mr-8 content-center">
<Breadcrumbs />
</div>
</nav>
Expand Down

0 comments on commit 8db9a55

Please sign in to comment.