Skip to content

Commit 06afdf5

Browse files
committed
Ensure CSS is purgeable
1 parent b28e3e6 commit 06afdf5

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/components/Header.svelte

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,10 @@ const items = [
1414
{#each items as { title, href }}
1515
<li>
1616
<a
17-
class="flex items-center justify-center border-red-500 hover:text-red-500 px-3 pt-4 pb-1"
18-
class:border-b-2={$pages[0] === href}
17+
class="{$pages[0] === href ? 'border-b-4 ' : ''}flex items-center justify-center mx-2 px-1 pt-4 pb-1 border-red-500 hover:text-red-500"
1918
{href}>{title}</a>
2019
</li>
2120
{/each}
2221
</ul>
2322
</nav>
2423
</header>
25-

0 commit comments

Comments
 (0)