design: improve looks of entityheaders
This commit is contained in:
5 files changed
+51
-53
No files matched your search
@@ -45,52 +45,51 @@
|
||||
<Header pageHeader class="lg:flex-row justify-between flex-col">
|
||||
{$t('routes.inbox.title')}
|
||||
|
||||
<div class="flex gap-2 tracking-normal">
|
||||
<Button
|
||||
onclick={() => goto(page.url, { invalidateAll: true })}
|
||||
rounding="2xl"
|
||||
size="square-lg"
|
||||
aria-label={$t('common.refresh')}
|
||||
icon={ArrowPath}
|
||||
></Button>
|
||||
<Button
|
||||
onclick={markAllAsRead}
|
||||
loading={markingAsRead}
|
||||
disabled={markingAsRead || data.inbox.value.length == 0}
|
||||
color="primary"
|
||||
icon={Check}
|
||||
size="lg"
|
||||
>
|
||||
{$t('routes.inbox.markAsRead')}
|
||||
</Button>
|
||||
</div>
|
||||
</Header>
|
||||
|
||||
<Select
|
||||
class="relative"
|
||||
bind:value={
|
||||
() => data.unreadOnly.value.toString(),
|
||||
(v) => (data.unreadOnly.value = v == 'true')
|
||||
}
|
||||
onchange={() =>
|
||||
searchParam(
|
||||
page.url,
|
||||
'unreadOnly',
|
||||
data.unreadOnly.value ? 'true' : 'false',
|
||||
'page',
|
||||
)}
|
||||
>
|
||||
{#snippet customLabel()}
|
||||
<div class="flex items-center gap-1">
|
||||
<Icon src={Funnel} size="15" mini />
|
||||
{$t('filter.filter')}
|
||||
{#snippet extended()}
|
||||
<div class="flex gap-2 tracking-normal items-end">
|
||||
<Select
|
||||
class="relative"
|
||||
bind:value={
|
||||
() => data.unreadOnly.value.toString(),
|
||||
(v) => (data.unreadOnly.value = v == 'true')
|
||||
}
|
||||
onchange={() =>
|
||||
searchParam(
|
||||
page.url,
|
||||
'unreadOnly',
|
||||
data.unreadOnly.value ? 'true' : 'false',
|
||||
'page',
|
||||
)}
|
||||
>
|
||||
{#snippet customLabel()}
|
||||
<div class="flex items-center gap-1">
|
||||
<Icon src={Funnel} size="15" mini />
|
||||
{$t('filter.filter')}
|
||||
</div>
|
||||
{/snippet}
|
||||
<Option value="false">{$t('filter.location.all')}</Option>
|
||||
<Option value="true">{$t('filter.unread')}</Option>
|
||||
</Select>
|
||||
<div class="flex-1"></div>
|
||||
<Button
|
||||
onclick={markAllAsRead}
|
||||
loading={markingAsRead}
|
||||
disabled={markingAsRead || data.inbox.value.length == 0}
|
||||
color="primary"
|
||||
icon={Check}
|
||||
size="lg"
|
||||
>
|
||||
{$t('routes.inbox.markAsRead')}
|
||||
</Button>
|
||||
<Button
|
||||
onclick={() => goto(page.url, { invalidateAll: true })}
|
||||
size="square-lg"
|
||||
aria-label={$t('common.refresh')}
|
||||
icon={ArrowPath}
|
||||
/>
|
||||
</div>
|
||||
{/snippet}
|
||||
<Option value="false">{$t('filter.location.all')}</Option>
|
||||
<Option value="true">{$t('filter.unread')}</Option>
|
||||
</Select>
|
||||
|
||||
<div class="h-3 sm:h-6"></div>
|
||||
</Header>
|
||||
|
||||
{#if !data.inbox?.value || (data.inbox.value?.length ?? 0) == 0}
|
||||
<Placeholder
|
||||
|
||||
@@ -123,11 +123,10 @@
|
||||
color="transparent"
|
||||
rounding="2xl"
|
||||
padding="none"
|
||||
class="bg-white dark:bg-zinc-950 dark:border-t-zinc-900
|
||||
w-full overflow-auto relative h-full"
|
||||
class="bg-white dark:bg-zinc-950 dark:border-t-zinc-900 w-full overflow-auto relative flex-1"
|
||||
>
|
||||
<div class="h-full overflow-auto" bind:this={chatWindow}>
|
||||
<ul id="chat-window" class=" h-full flex flex-col gap-1 flex-1 px-4 py-4">
|
||||
<div class=" overflow-auto" bind:this={chatWindow}>
|
||||
<ul id="chat-window" class=" flex flex-col gap-1 flex-1 px-4 py-4">
|
||||
<div class="mt-auto"></div>
|
||||
<p class="mx-auto mt-auto text-slate-400 dark:text-zinc-600 text-center">
|
||||
{$t('routes.inbox.messages.conversation', {
|
||||
@@ -203,8 +202,8 @@
|
||||
<MarkdownEditor
|
||||
previewButton={false}
|
||||
bind:value={textbox.message}
|
||||
class="flex-1"
|
||||
></MarkdownEditor>
|
||||
class="flex-1 rounded-xl"
|
||||
/>
|
||||
{:else}
|
||||
<Button
|
||||
onclick={() => (settings.messages.fullMarkdown = true)}
|
||||
|
||||
Reference in new issue
Block a user