design: Fix formatting

This commit is contained in:
Xyphyn committed 2023-07-14 17:16:49 -07:00
1 parent f3792c9a46
commit e410bb68d5
5 files changed
+18 -11

No files matched your search

+2 -2
View File
@@ -57,7 +57,7 @@
<Button slot="button" label="Post actions" on:click={toggleOpen}>
<Icon src={EllipsisHorizontal} width={16} mini />
</Button>
<span class="mx-4 text-xs opacity-80 text-left my-2">Creator</span>
<li class="mx-4 text-xs opacity-80 text-left my-1 py-1">Creator</li>
<MenuButton
link
href="/u/{post.creator.name}@{new URL(post.creator.actor_id).hostname}"
@@ -74,7 +74,7 @@
<span>{post.community.title}</span>
</MenuButton>
<hr class="w-[90%] mx-auto opacity-100 dark:opacity-10 my-2" />
<span class="mx-4 text-xs opacity-80 text-left my-2">Actions</span>
<li class="mx-4 text-xs opacity-80 text-left my-1 py-1">Actions</li>
<MenuButton
on:click={() => {
navigator.clipboard.writeText(
+3 -3
View File
@@ -94,9 +94,9 @@
{/if}
{/if}
</button>
<span class="text-xs opacity-80 text-left mx-4 my-2">
<li class="text-xs opacity-80 text-left mx-4 my-1 py-1">
{$user ? $user.person.name : 'Profile'}
</span>
</li>
{#if !$user || !$authData}
<MenuButton link href="/login">
<Icon src={ArrowLeftOnRectangle} mini width={16} /> Log in
@@ -126,7 +126,7 @@
<Icon src={ArrowRightOnRectangle} mini width={16} />Log out
</MenuButton>
<hr class="opacity-10 w-[90%] my-2 mx-auto" />
<span class="text-xs px-4 my-1">v{__VERSION__}</span>
<li class="text-xs px-4 py-1 my-1 opacity-80">v{__VERSION__}</li>
<MenuButton link href="/experiments">
<Icon src={Beaker} mini width={16} />
Experiments
+2 -2
View File
@@ -35,7 +35,7 @@
>
<slot name="button" {toggleOpen} />
{#if open}
<ul
<menu
transition:scale|local={{
duration: 200,
start: 0.95,
@@ -54,6 +54,6 @@
<slot {toggleOpen} />
</div>
{/if}
</ul>
</menu>
{/if}
</div>
+4 -4
View File
@@ -14,15 +14,15 @@
$: {
if ($navigating) {
nProgress.start()
if (typeof document != 'undefined') {
document.documentElement.classList.toggle('wait', true)
nProgress.start()
document?.documentElement?.classList?.toggle('wait', true)
}
}
if (!$navigating) {
nProgress.done()
if (typeof document != 'undefined') {
document.documentElement.classList.toggle('wait', false)
nProgress.done()
document?.documentElement?.classList?.toggle('wait', false)
}
}
}
+7
View File
@@ -17,12 +17,19 @@
cursor: wait !important;
}
#nprogress {
z-index: 999 !important;
position: fixed !important;
}
#nprogress .bar {
@apply bg-black dark:bg-white !important;
z-index: 999 !important;
}
#nprogress .peg {
display: none !important;
z-index: 999 !important;
}
pre {