fix: inconsistent spacing for headers
This commit is contained in:
9 files changed
+101
-101
No files matched your search
+30
-24
@@ -21,12 +21,12 @@
|
||||
|
||||
onMount(async () => {
|
||||
await data.feed.value
|
||||
$effect(() => {
|
||||
if (data.filters.value.type_)
|
||||
settings.defaultSort.feed = data.filters.value.type_
|
||||
if (data.filters.value.sort)
|
||||
settings.defaultSort.sort = data.filters.value.sort
|
||||
})
|
||||
})
|
||||
$effect(() => {
|
||||
if (data.filters.value.type_)
|
||||
settings.defaultSort.feed = data.filters.value.type_
|
||||
if (data.filters.value.sort)
|
||||
settings.defaultSort.sort = data.filters.value.sort
|
||||
})
|
||||
|
||||
const FeedComponent = $derived(
|
||||
@@ -45,27 +45,33 @@
|
||||
{$t('routes.frontpage.title')}
|
||||
|
||||
{#snippet extended()}
|
||||
<form class="flex items-center gap-2" method="get" action="/">
|
||||
{#if data.filters.value.type_}
|
||||
<Location
|
||||
name="type"
|
||||
<form class="" method="get" action="/">
|
||||
<div class="flex flex-row gap-4">
|
||||
{#if data.filters.value.type_}
|
||||
<Location
|
||||
name="type"
|
||||
navigate
|
||||
bind:selected={data.filters.value.type_}
|
||||
/>
|
||||
{/if}
|
||||
<Sort
|
||||
placement="bottom"
|
||||
name="sort"
|
||||
navigate
|
||||
bind:selected={data.filters.value.type_}
|
||||
bind:selected={data.filters.value.sort}
|
||||
/>
|
||||
{/if}
|
||||
<Sort
|
||||
placement="bottom"
|
||||
name="sort"
|
||||
navigate
|
||||
bind:selected={data.filters.value.sort}
|
||||
/>
|
||||
<ViewSelect placement="bottom" />
|
||||
<ViewSelect placement="bottom" />
|
||||
|
||||
<noscript>
|
||||
<Button class="self-end h-[34px] aspect-square" size="custom" submit>
|
||||
<Icon src={ArrowRight} size="16" micro />
|
||||
</Button>
|
||||
</noscript>
|
||||
<noscript>
|
||||
<Button
|
||||
class="self-end h-[34px] aspect-square"
|
||||
size="custom"
|
||||
submit
|
||||
>
|
||||
<Icon src={ArrowRight} size="16" micro />
|
||||
</Button>
|
||||
</noscript>
|
||||
</div>
|
||||
</form>
|
||||
{/snippet}
|
||||
</Header>
|
||||
|
||||
@@ -126,7 +126,7 @@
|
||||
</div>
|
||||
{/snippet}
|
||||
</Header>
|
||||
<form class="accounts-grid mt-4 sm:mt-6 gap-4">
|
||||
<form class="accounts-grid gap-4">
|
||||
<CommonList
|
||||
selected={p => p.id == profile.meta.profile}
|
||||
items={profile.meta.profiles}
|
||||
|
||||
@@ -41,14 +41,13 @@
|
||||
<title>{$t('routes.communities.title')}</title>
|
||||
</svelte:head>
|
||||
|
||||
<Header pageHeader class="justify-between">
|
||||
<span>{$t('routes.communities.title')}</span>
|
||||
|
||||
<Header pageHeader>
|
||||
{$t('routes.communities.title')}
|
||||
{#snippet extended()}
|
||||
<form method="get" action="/communities" class="contents" bind:this={form}>
|
||||
<SearchBar bind:query={search} />
|
||||
|
||||
<div class="flex flex-row flex-wrap gap-4 mt-4 items-center">
|
||||
<div class="flex flex-row flex-wrap gap-4 items-center">
|
||||
<Location
|
||||
name="type"
|
||||
selected={data.type}
|
||||
|
||||
@@ -92,6 +92,7 @@
|
||||
<Button
|
||||
color="primary"
|
||||
rounding="pill"
|
||||
class="w-max"
|
||||
onclick={() => (searchModal.open = !searchModal.open)}
|
||||
>
|
||||
<Icon src={ChatBubbleOvalLeftEllipsis} size="18" mini />
|
||||
|
||||
@@ -71,67 +71,67 @@
|
||||
}
|
||||
</script>
|
||||
|
||||
<div class="mb-4 flex flex-col gap-4">
|
||||
<Header pageHeader>
|
||||
{$t('routes.moderation.title')}
|
||||
{#snippet extended()}
|
||||
<div class="flex flex-row gap-2 flex-wrap items-end">
|
||||
<Select
|
||||
bind:value={data.type.value}
|
||||
onchange={async () => {
|
||||
await tick()
|
||||
searchParam(page.url, 'type', data.type.value, 'page')
|
||||
}}
|
||||
>
|
||||
{#snippet customLabel()}
|
||||
<span class="flex items-center gap-1">
|
||||
<Icon src={Funnel} size="15" mini />
|
||||
{$t('filter.filter')}
|
||||
</span>
|
||||
{/snippet}
|
||||
<Option value="all">{$t('filter.location.all')}</Option>
|
||||
<Option value="unread">{$t('filter.unread')}</Option>
|
||||
</Select>
|
||||
<Button
|
||||
loading={batch.progress >= 0}
|
||||
disabled={batch.progress >= 0 || data.items.value?.length == 0}
|
||||
onclick={markAllAsResolved}
|
||||
class="h-max ml-auto"
|
||||
rounding="pill"
|
||||
color="primary"
|
||||
>
|
||||
<Icon src={Check} size="16" mini />
|
||||
{$t('routes.moderation.markAll')}
|
||||
</Button>
|
||||
</div>
|
||||
{#if data.filters.community}
|
||||
<ul class="font-normal flex flex-col gap-2 mt-2">
|
||||
<li>
|
||||
<span class="text-sm text-slate-600 dark:text-zinc-400">
|
||||
{$t('form.post.community')}
|
||||
</span>
|
||||
{#await client().getCommunity({ id: data.filters.community })}
|
||||
<Spinner width={24} />
|
||||
{:then community}
|
||||
<a
|
||||
class="inline"
|
||||
aria-label={$t('common.remove')}
|
||||
href="?community="
|
||||
>
|
||||
<Icon src={XMark} size="16" micro class="inline" />
|
||||
</a>
|
||||
<CommunityLink
|
||||
class="w-max inline"
|
||||
community={community.community_view.community}
|
||||
/>
|
||||
{/await}
|
||||
</li>
|
||||
</ul>
|
||||
{/if}
|
||||
{/snippet}
|
||||
</Header>
|
||||
</div>
|
||||
<ProgressBar progress={batch.progress} />
|
||||
<Header pageHeader>
|
||||
{$t('routes.moderation.title')}
|
||||
{#snippet extended()}
|
||||
<div class="flex flex-row gap-2 flex-wrap items-end">
|
||||
<Select
|
||||
bind:value={data.type.value}
|
||||
onchange={async () => {
|
||||
await tick()
|
||||
searchParam(page.url, 'type', data.type.value, 'page')
|
||||
}}
|
||||
>
|
||||
{#snippet customLabel()}
|
||||
<span class="flex items-center gap-1">
|
||||
<Icon src={Funnel} size="15" mini />
|
||||
{$t('filter.filter')}
|
||||
</span>
|
||||
{/snippet}
|
||||
<Option value="all">{$t('filter.location.all')}</Option>
|
||||
<Option value="unread">{$t('filter.unread')}</Option>
|
||||
</Select>
|
||||
<Button
|
||||
loading={batch.progress >= 0}
|
||||
disabled={batch.progress >= 0 || data.items.value?.length == 0}
|
||||
onclick={markAllAsResolved}
|
||||
class="h-max ml-auto"
|
||||
rounding="pill"
|
||||
color="primary"
|
||||
>
|
||||
<Icon src={Check} size="16" mini />
|
||||
{$t('routes.moderation.markAll')}
|
||||
</Button>
|
||||
</div>
|
||||
{#if data.filters.community}
|
||||
<ul class="font-normal flex flex-col gap-2 mt-2">
|
||||
<li>
|
||||
<span class="text-sm text-slate-600 dark:text-zinc-400">
|
||||
{$t('form.post.community')}
|
||||
</span>
|
||||
{#await client().getCommunity({ id: data.filters.community })}
|
||||
<Spinner width={24} />
|
||||
{:then community}
|
||||
<a
|
||||
class="inline"
|
||||
aria-label={$t('common.remove')}
|
||||
href="?community="
|
||||
>
|
||||
<Icon src={XMark} size="16" micro class="inline" />
|
||||
</a>
|
||||
<CommunityLink
|
||||
class="w-max inline"
|
||||
community={community.community_view.community}
|
||||
/>
|
||||
{/await}
|
||||
</li>
|
||||
</ul>
|
||||
{/if}
|
||||
{/snippet}
|
||||
</Header>
|
||||
{#if batch.progress > 0}
|
||||
<ProgressBar progress={batch.progress} />
|
||||
{/if}
|
||||
{#if data.items?.value && data.items?.value.length > 0}
|
||||
<CommonList items={data.items?.value} size="lg">
|
||||
{#snippet item(item)}
|
||||
@@ -165,4 +165,3 @@
|
||||
description={$t('routes.moderation.empty.description')}
|
||||
/>
|
||||
{/if}
|
||||
<div class="h-4"></div>
|
||||
@@ -55,12 +55,7 @@
|
||||
<Header pageHeader>
|
||||
{$t('routes.search.title')}
|
||||
{#snippet extended()}
|
||||
<form
|
||||
method="get"
|
||||
action="/search"
|
||||
class="flex flex-col gap-4"
|
||||
bind:this={form}
|
||||
>
|
||||
<form method="get" action="/search" class="contents" bind:this={form}>
|
||||
<SearchBar bind:query={data.filters.value.query} />
|
||||
<div class="flex flex-row flex-wrap items-center gap-4">
|
||||
<Select
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
let searchElement = $state<HTMLInputElement>()
|
||||
</script>
|
||||
|
||||
<div class="mt-4 mb-0 sticky z-30 top-6 lg:top-22">
|
||||
<div class="mb-0 sticky z-30 top-6 lg:top-22">
|
||||
<div
|
||||
class="flex gap-2 flex-row items-center w-full text-base h-10 drop-shadow-xl"
|
||||
>
|
||||
|
||||
@@ -51,10 +51,10 @@
|
||||
</Modal>
|
||||
{/if}
|
||||
|
||||
<Header pageHeader>{$t('routes.theme.title')}</Header>
|
||||
<div class="flex flex-col gap-4 h-full">
|
||||
<Header pageHeader>{$t('routes.theme.title')}</Header>
|
||||
<h3
|
||||
class="relative top-[26px] z-10 left-6 font-medium text-sm bg-slate-25 dark:bg-zinc-925 w-max px-1"
|
||||
class="relative -mb-7 z-10 left-6 font-medium text-sm bg-slate-25 dark:bg-zinc-925 w-max px-1"
|
||||
>
|
||||
{$t('routes.theme.preset.presets')}
|
||||
</h3>
|
||||
|
||||
Reference in new issue
Block a user