design: consistency improvements
This commit is contained in:
8 files changed
+51
-45
No files matched your search
@@ -50,9 +50,7 @@
|
||||
>
|
||||
{@render children?.()}
|
||||
<div
|
||||
class="fixed lg:sticky bottom-0 {dockVisible
|
||||
? ''
|
||||
: 'max-lg:-bottom-24'} lg:top-0
|
||||
class="fixed bottom-0 {dockVisible ? '' : 'max-lg:-bottom-24'} lg:top-0
|
||||
max-w-3xl p-4 left-1/2 -translate-x-1/2 lg:max-w-full lg:p-0 lg:left-0 lg:translate-x-0
|
||||
w-full z-50 pointer-events-none"
|
||||
style="grid-area: navbar;
|
||||
@@ -71,16 +69,16 @@
|
||||
>
|
||||
{@render sidebar?.({
|
||||
class: `hidden md:flex sticky top-0 left-0 h-max bg-slate-50 dark:bg-zinc-950
|
||||
z-40 lg:top-16`,
|
||||
z-40 lg:!pt-20`,
|
||||
style: 'grid-area: sidebar; width: 100% !important;',
|
||||
})}
|
||||
{@render main?.({
|
||||
class: `w-full bg-slate-25 dark:bg-zinc-925 justify-self-center shadow-sm z-0 main !pb-22 lg:!pb-0`,
|
||||
class: `w-full bg-slate-25 dark:bg-zinc-925 justify-self-center shadow-sm z-0 main !pb-22 lg:!pb-0 lg:!pt-22`,
|
||||
style: 'grid-area: main',
|
||||
})}
|
||||
{@render suffix?.({
|
||||
class: `max-xl:hidden w-full sticky top-0 left-0 max-h-screen bg-slate-50 dark:bg-zinc-950
|
||||
z-40 lg:top-16`,
|
||||
z-40 lg:!pt-20`,
|
||||
style: 'grid-area: suffix;',
|
||||
})}
|
||||
</div>
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
|
||||
{#each items.sort( (a, b) => a.title.localeCompare(b.title), ) as follow (follow.id)}
|
||||
<div
|
||||
class="inline-flex w-full items-center pl-3 hover:bg-slate-100 hover:dark:bg-zinc-800
|
||||
class="inline-flex w-full items-center pl-3 hover:bg-slate-100 hover:dark:bg-zinc-900
|
||||
transition-colors rounded-lg"
|
||||
animate:flip={{ duration: 500, easing: expoOut }}
|
||||
>
|
||||
|
||||
@@ -22,6 +22,7 @@
|
||||
color="tertiary"
|
||||
alignment="left"
|
||||
loading={switching}
|
||||
rounding="lg"
|
||||
loaderWidth={22}
|
||||
selected={profile.data?.id == prof.id}
|
||||
onclick={async () => {
|
||||
|
||||
@@ -109,11 +109,13 @@
|
||||
</EndPlaceholder>
|
||||
</span>
|
||||
{/snippet}
|
||||
{#each [...profileData.profiles] as prof, index}
|
||||
<div class="w-full">
|
||||
<ProfileButton {index} {prof} />
|
||||
</div>
|
||||
{/each}
|
||||
<div class="w-full flex gap-px flex-col">
|
||||
{#each [...profileData.profiles] as prof, index}
|
||||
<div class="w-full">
|
||||
<ProfileButton {index} {prof} />
|
||||
</div>
|
||||
{/each}
|
||||
</div>
|
||||
<SidebarButton href="/accounts" icon={UserGroup}>
|
||||
{$t('account.accounts')}
|
||||
</SidebarButton>
|
||||
@@ -126,11 +128,7 @@
|
||||
bind:open={settings.expand.favorites}
|
||||
>
|
||||
{#snippet title()}
|
||||
<span
|
||||
class="px-2 py-1 w-full {settings.expandSidebar
|
||||
? ''
|
||||
: '//max-lg:hidden'}"
|
||||
>
|
||||
<span class="px-2 py-1 w-full">
|
||||
<EndPlaceholder>
|
||||
{$t('routes.profile.favorites')}
|
||||
{#snippet action()}
|
||||
@@ -152,11 +150,7 @@
|
||||
bind:open={settings.expand.moderates}
|
||||
>
|
||||
{#snippet title()}
|
||||
<span
|
||||
class="px-2 py-1 w-full {settings.expandSidebar
|
||||
? ''
|
||||
: '//max-lg:hidden'}"
|
||||
>
|
||||
<span class="px-2 py-1 w-full">
|
||||
<EndPlaceholder>
|
||||
{$t('routes.profile.moderates')}
|
||||
{#snippet action()}
|
||||
@@ -179,11 +173,7 @@
|
||||
bind:open={settings.expand.communities}
|
||||
>
|
||||
{#snippet title()}
|
||||
<span
|
||||
class="px-2 py-1 w-full {settings.expandSidebar
|
||||
? ''
|
||||
: '//max-lg:hidden'}"
|
||||
>
|
||||
<span class="px-2 py-1 w-full">
|
||||
<EndPlaceholder>
|
||||
{$t('profile.subscribed')}
|
||||
{#snippet action()}
|
||||
|
||||
@@ -33,13 +33,14 @@
|
||||
</script>
|
||||
|
||||
<Button
|
||||
color={selected ? 'primary' : 'tertiary'}
|
||||
color="tertiary"
|
||||
alignment="left"
|
||||
rounding="pill"
|
||||
{...rest}
|
||||
{href}
|
||||
class="font-normal block !origin-left border border-transparent {!selected
|
||||
class="font-normal block !origin-left border border-transparent hover:dark:bg-zinc-900 {!selected
|
||||
? 'text-slate-600 dark:text-zinc-400'
|
||||
: ''} {clazz}"
|
||||
: 'bg-slate-100 dark:bg-zinc-925'} {clazz}"
|
||||
>
|
||||
{#snippet prefix()}
|
||||
{#if customIcon}
|
||||
|
||||
Reference in new issue
Block a user