Skip to content

Commit

Permalink
Use regular div for breadcrumb chevrons
Browse files Browse the repository at this point in the history
  • Loading branch information
trevorblades committed Jun 10, 2024
1 parent a4dcb1c commit ab5e5ca
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions packages/ui/static-bundle/src/pages/[...path].astro
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import { FernNavigation } from "@fern-api/fdr-sdk";
import { NodeCollector } from "@fern-api/fdr-sdk/navigation";
import { getColorVariables } from "@fern-ui/ui/src/next-app/utils/getColorVariables";
import type { GetStaticPaths } from "astro";
import cn from "clsx";
import DocsMainContent from "../components/DocsMainContent.astro";
import { getDocs } from "../utils";
Expand Down Expand Up @@ -56,13 +55,11 @@ const colorVariables = getColorVariables(
<ul class="mb-8 flex">
{
node.breadcrumb.map((crumb, index) => (
<li
class={cn(
index &&
"flex items-center before:border-t before:border-r before:block before:border-current before:size-[0.5em] before:rotate-45 before:mx-2"
<li class="flex items-center">
{index > 0 && (
<div class="border-t border-r block border-current size-[0.5em] rotate-45 mx-2" />
)}
>
{crumb}
<span>{crumb}</span>
</li>
))
}
Expand Down

0 comments on commit ab5e5ca

Please sign in to comment.