Skip to content

Commit e4be10c

Browse files
committed
redesign breadcrumbs
1 parent 9e15b66 commit e4be10c

File tree

3 files changed

+25
-20
lines changed

3 files changed

+25
-20
lines changed

src/html/templates/breadcrumbs.hbs

Lines changed: 20 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,29 @@
1-
<div class="whitespace-nowrap inline-flex gap-1.5 items-center">
1+
<ul class="whitespace-nowrap inline-flex gap-1 items-center *:py-1 *:px-2">
22
{{~#each parts~}}
33
{{~#if this.is_first_symbol~}}
4-
<span>
4+
<ul>
55
{{~/if~}}
66

7-
{{~#if @last~}}
8-
<span class="{{#if @first}}text-xl lg:text-2xl leading-none font-bold{{else}}lg:text-xl leading-[0.9em]{{/if}}">
9-
{{~this.name~}}
10-
</span>
11-
{{~else~}}
12-
<a class="link {{#if @first}}text-xl lg:text-2xl leading-none font-bold{{else}}lg:text-xl leading-[0.9em]{{/if}}" href="{{this.href}}">
13-
{{~this.name~}}
14-
</a>
7+
<li class="inline {{#if @first}}text-xl lg:text-2xl leading-none font-bold{{else}}lg:text-xl leading-[0.9em]{{/if}} {{#unless this.is_symbol}}rounded-lg hover:bg-[#EBF6FF]{{/unless}}">
8+
{{~#if @last~}}
9+
{{~this.name~}}
10+
{{~else~}}
11+
<a class="text-breadcrumb underline decoration-breadcrumb/50 underline-offset-4 decoration-dotted hover:decoration-solid hover:decoration-breadcrumb" href="{{this.href}}">
12+
{{~this.name~}}
13+
</a>
14+
{{~/if~}}
15+
</li>
1516

16-
{{~#if this.is_symbol~}}
17-
<span>.</span>
18-
{{~else~}}
19-
<span class="text-stone-600">{{~> icons/arrow ~}}</span>
20-
{{~/if~}}
21-
{{~/if~}}
17+
{{~#unless @last~}}
18+
{{~#if this.is_symbol~}}
19+
<span>.</span>
20+
{{~else~}}
21+
<span class="!p-0 text-[#0F172A]">{{~> icons/arrow ~}}</span>
22+
{{~/if~}}
23+
{{/unless}}
2224

2325
{{~#if (and @last this.is_symbol)~}}
24-
</span>
26+
</ul>
2527
{{~/if~}}
2628
{{~/each~}}
27-
</div>
29+
</ul>

0 commit comments

Comments
 (0)