design: Fix formatting
This commit is contained in:
1 parent
f3792c9a46
commit
e410bb68d5
5 files changed
+18
-11
No files matched your search
@@ -57,7 +57,7 @@
|
|||||||
<Button slot="button" label="Post actions" on:click={toggleOpen}>
|
<Button slot="button" label="Post actions" on:click={toggleOpen}>
|
||||||
<Icon src={EllipsisHorizontal} width={16} mini />
|
<Icon src={EllipsisHorizontal} width={16} mini />
|
||||||
</Button>
|
</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
|
<MenuButton
|
||||||
link
|
link
|
||||||
href="/u/{post.creator.name}@{new URL(post.creator.actor_id).hostname}"
|
href="/u/{post.creator.name}@{new URL(post.creator.actor_id).hostname}"
|
||||||
@@ -74,7 +74,7 @@
|
|||||||
<span>{post.community.title}</span>
|
<span>{post.community.title}</span>
|
||||||
</MenuButton>
|
</MenuButton>
|
||||||
<hr class="w-[90%] mx-auto opacity-100 dark:opacity-10 my-2" />
|
<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
|
<MenuButton
|
||||||
on:click={() => {
|
on:click={() => {
|
||||||
navigator.clipboard.writeText(
|
navigator.clipboard.writeText(
|
||||||
|
|||||||
@@ -94,9 +94,9 @@
|
|||||||
{/if}
|
{/if}
|
||||||
{/if}
|
{/if}
|
||||||
</button>
|
</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'}
|
{$user ? $user.person.name : 'Profile'}
|
||||||
</span>
|
</li>
|
||||||
{#if !$user || !$authData}
|
{#if !$user || !$authData}
|
||||||
<MenuButton link href="/login">
|
<MenuButton link href="/login">
|
||||||
<Icon src={ArrowLeftOnRectangle} mini width={16} /> Log in
|
<Icon src={ArrowLeftOnRectangle} mini width={16} /> Log in
|
||||||
@@ -126,7 +126,7 @@
|
|||||||
<Icon src={ArrowRightOnRectangle} mini width={16} />Log out
|
<Icon src={ArrowRightOnRectangle} mini width={16} />Log out
|
||||||
</MenuButton>
|
</MenuButton>
|
||||||
<hr class="opacity-10 w-[90%] my-2 mx-auto" />
|
<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">
|
<MenuButton link href="/experiments">
|
||||||
<Icon src={Beaker} mini width={16} />
|
<Icon src={Beaker} mini width={16} />
|
||||||
Experiments
|
Experiments
|
||||||
|
|||||||
@@ -35,7 +35,7 @@
|
|||||||
>
|
>
|
||||||
<slot name="button" {toggleOpen} />
|
<slot name="button" {toggleOpen} />
|
||||||
{#if open}
|
{#if open}
|
||||||
<ul
|
<menu
|
||||||
transition:scale|local={{
|
transition:scale|local={{
|
||||||
duration: 200,
|
duration: 200,
|
||||||
start: 0.95,
|
start: 0.95,
|
||||||
@@ -54,6 +54,6 @@
|
|||||||
<slot {toggleOpen} />
|
<slot {toggleOpen} />
|
||||||
</div>
|
</div>
|
||||||
{/if}
|
{/if}
|
||||||
</ul>
|
</menu>
|
||||||
{/if}
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
@@ -14,15 +14,15 @@
|
|||||||
|
|
||||||
$: {
|
$: {
|
||||||
if ($navigating) {
|
if ($navigating) {
|
||||||
nProgress.start()
|
|
||||||
if (typeof document != 'undefined') {
|
if (typeof document != 'undefined') {
|
||||||
document.documentElement.classList.toggle('wait', true)
|
nProgress.start()
|
||||||
|
document?.documentElement?.classList?.toggle('wait', true)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!$navigating) {
|
if (!$navigating) {
|
||||||
nProgress.done()
|
|
||||||
if (typeof document != 'undefined') {
|
if (typeof document != 'undefined') {
|
||||||
document.documentElement.classList.toggle('wait', false)
|
nProgress.done()
|
||||||
|
document?.documentElement?.classList?.toggle('wait', false)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -17,12 +17,19 @@
|
|||||||
cursor: wait !important;
|
cursor: wait !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#nprogress {
|
||||||
|
z-index: 999 !important;
|
||||||
|
position: fixed !important;
|
||||||
|
}
|
||||||
|
|
||||||
#nprogress .bar {
|
#nprogress .bar {
|
||||||
@apply bg-black dark:bg-white !important;
|
@apply bg-black dark:bg-white !important;
|
||||||
|
z-index: 999 !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
#nprogress .peg {
|
#nprogress .peg {
|
||||||
display: none !important;
|
display: none !important;
|
||||||
|
z-index: 999 !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
pre {
|
pre {
|
||||||
|
|||||||
Reference in new issue
Block a user