fix: scroll issues
This commit is contained in:
5 files changed
+9
-12
No files matched your search
@@ -226,20 +226,18 @@
|
|||||||
</Expandable>
|
</Expandable>
|
||||||
{/if}
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div class="flex flex-row items-center gap-1 sticky bottom-0 w-full">
|
||||||
class="flex flex-row items-center gap-1 sticky bottom-0 drop-shadow-xl w-full"
|
|
||||||
>
|
|
||||||
{#if profile.data?.jwt}
|
{#if profile.data?.jwt}
|
||||||
<Button
|
<Button
|
||||||
disabled={loading.subscribing}
|
disabled={loading.subscribing}
|
||||||
loading={loading.subscribing}
|
loading={loading.subscribing}
|
||||||
size="md"
|
size="md"
|
||||||
rounding="xl"
|
rounding="pill"
|
||||||
color={community_view.subscribed == 'Subscribed'
|
color={community_view.subscribed == 'Subscribed'
|
||||||
? 'secondary'
|
? 'secondary'
|
||||||
: 'primary'}
|
: 'primary'}
|
||||||
onclick={subscribe}
|
onclick={subscribe}
|
||||||
class="px-5 relative z-[inherit]"
|
class="px-4 relative z-[inherit]"
|
||||||
>
|
>
|
||||||
{#snippet prefix()}
|
{#snippet prefix()}
|
||||||
<Icon
|
<Icon
|
||||||
@@ -261,6 +259,7 @@
|
|||||||
community_view.community.actor_id,
|
community_view.community.actor_id,
|
||||||
)}/settings"
|
)}/settings"
|
||||||
size="square-md"
|
size="square-md"
|
||||||
|
rounding="pill"
|
||||||
>
|
>
|
||||||
{#snippet prefix()}
|
{#snippet prefix()}
|
||||||
<Icon src={Cog6Tooth} mini size="16" />
|
<Icon src={Cog6Tooth} mini size="16" />
|
||||||
@@ -269,7 +268,7 @@
|
|||||||
{/if}
|
{/if}
|
||||||
<Menu placement="top-end">
|
<Menu placement="top-end">
|
||||||
{#snippet target()}
|
{#snippet target()}
|
||||||
<Button size="square-md">
|
<Button size="square-md" rounding="pill">
|
||||||
{#snippet prefix()}
|
{#snippet prefix()}
|
||||||
<Icon src={EllipsisHorizontal} size="16" mini />
|
<Icon src={EllipsisHorizontal} size="16" mini />
|
||||||
{/snippet}
|
{/snippet}
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<aside
|
<aside
|
||||||
class="sticky top-0 left-0 break-words flex shrink
|
class="break-words flex shrink
|
||||||
flex-col gap-4 px-6 max-w-full w-full h-full
|
flex-col gap-4 px-6 max-w-full w-full h-full
|
||||||
overflow-auto text-sm border-slate-200 dark:border-zinc-800 {clazz}"
|
overflow-auto text-sm border-slate-200 dark:border-zinc-800 {clazz}"
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -37,7 +37,7 @@
|
|||||||
{@render children?.()}
|
{@render children?.()}
|
||||||
<div
|
<div
|
||||||
class={[
|
class={[
|
||||||
'fixed lg:sticky bottom-0 lg:top-0',
|
'fixed bottom-0 lg:top-0',
|
||||||
dockVisible && 'max-lg:-bottom-24',
|
dockVisible && 'max-lg:-bottom-24',
|
||||||
'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',
|
'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',
|
'w-full z-50 pointer-events-none',
|
||||||
@@ -64,11 +64,11 @@
|
|||||||
style: 'grid-area: sidebar; width: 100% !important;',
|
style: 'grid-area: sidebar; width: 100% !important;',
|
||||||
})}
|
})}
|
||||||
{@render main?.({
|
{@render main?.({
|
||||||
class: `w-full bg-slate-25 dark:bg-zinc-925 justify-self-center shadow-xs z-0 main pb-22 lg:pb-0`,
|
class: `w-full bg-slate-25 dark:bg-zinc-925 justify-self-center shadow-xs z-0 main pb-22 lg:pb-0 lg:pt-20!`,
|
||||||
style: 'grid-area: main',
|
style: 'grid-area: main',
|
||||||
})}
|
})}
|
||||||
{@render suffix?.({
|
{@render suffix?.({
|
||||||
class: `max-xl:hidden w-full sticky top-0 lg:top-16 left-0 max-h-screen bg-slate-50 dark:bg-zinc-950 z-40`,
|
class: `max-xl:hidden w-full sticky lg:top-20 h-max max-h-screen overflow-auto left-0 bg-slate-50 dark:bg-zinc-950 z-40`,
|
||||||
style: 'grid-area: suffix;',
|
style: 'grid-area: suffix;',
|
||||||
})}
|
})}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -144,7 +144,6 @@
|
|||||||
taglines={site.data.taglines}
|
taglines={site.data.taglines}
|
||||||
admins={site.data.admins}
|
admins={site.data.admins}
|
||||||
version={site.data.version}
|
version={site.data.version}
|
||||||
class="pt-0!"
|
|
||||||
/>
|
/>
|
||||||
{:else}
|
{:else}
|
||||||
<div class="h-64 w-full grid place-items-center">
|
<div class="h-64 w-full grid place-items-center">
|
||||||
|
|||||||
@@ -9,7 +9,6 @@
|
|||||||
setUserID,
|
setUserID,
|
||||||
} from '$lib/auth.svelte.js'
|
} from '$lib/auth.svelte.js'
|
||||||
import Header from '$lib/components/ui/layout/pages/Header.svelte'
|
import Header from '$lib/components/ui/layout/pages/Header.svelte'
|
||||||
import TextProps from '$lib/components/ui/text/TextProps.svelte'
|
|
||||||
import DebugObject from '$lib/components/util/debug/DebugObject.svelte'
|
import DebugObject from '$lib/components/util/debug/DebugObject.svelte'
|
||||||
import { t } from '$lib/i18n/translations'
|
import { t } from '$lib/i18n/translations'
|
||||||
import { LINKED_INSTANCE_URL } from '$lib/instance.svelte.js'
|
import { LINKED_INSTANCE_URL } from '$lib/instance.svelte.js'
|
||||||
|
|||||||
Reference in new issue
Block a user