feat: Enable wrapping of main navbar when its long
This commit is contained in:
parent
99ce735252
commit
bc40990b52
|
@ -48,12 +48,12 @@
|
|||
class="floater-elem"
|
||||
style="padding-bottom: {(1 - progress) * 50}vh"
|
||||
>
|
||||
<div class="flex h-5 items-center space-x-4 text-sm">
|
||||
<a class="navbar-link" href="#bio">Bio</a>
|
||||
<div id="navbar" class="h-5 items-center space-x-4 text-sm">
|
||||
<a href="#bio">Bio</a>
|
||||
{#each routes as item}
|
||||
{#if item.route !== "/"}
|
||||
<Separator class="bg-gray-500 dark:bg-gray-100" orientation="vertical" />
|
||||
<a class="navbar-link" href={item.route} class:disabled-link={item.disabled}>{item.name}</a>
|
||||
<a href={item.route} class:disabled-link={item.disabled}>{item.name}</a>
|
||||
{/if}
|
||||
{/each}
|
||||
</div>
|
||||
|
@ -98,8 +98,8 @@
|
|||
background-position: center center;
|
||||
z-index: -10;
|
||||
position: fixed;
|
||||
min-width: 100vw;
|
||||
min-height: 100vh;
|
||||
min-width: 100%;
|
||||
min-height: 100%;
|
||||
overscroll-behaviour: none;
|
||||
}
|
||||
#front {
|
||||
|
@ -116,6 +116,10 @@
|
|||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
#navbar {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
.floater-elem {
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
|
|
Loading…
Reference in New Issue