fix: arrow icon being misplaced
This commit is contained in:
2 files changed
+14
-18
No files matched your search
@@ -95,12 +95,7 @@
|
|||||||
{#snippet selectTarget(attachment: Attachment)}
|
{#snippet selectTarget(attachment: Attachment)}
|
||||||
<Label text={label} class={['space-y-1 relative', clazz, baseClass]}>
|
<Label text={label} class={['space-y-1 relative', clazz, baseClass]}>
|
||||||
{@render customLabel?.()}
|
{@render customLabel?.()}
|
||||||
<Icon
|
<div class="relative" role="presentation">
|
||||||
src={ChevronUpDown}
|
|
||||||
micro
|
|
||||||
size="16"
|
|
||||||
class="absolute right-1.5 bottom-1 box-border pointer-events-none z-10 text-slate-600 dark:text-zinc-400"
|
|
||||||
/>
|
|
||||||
<select
|
<select
|
||||||
{@attach attachment}
|
{@attach attachment}
|
||||||
{...rest}
|
{...rest}
|
||||||
@@ -130,10 +125,17 @@
|
|||||||
{/if}
|
{/if}
|
||||||
{@render children?.()}
|
{@render children?.()}
|
||||||
</select>
|
</select>
|
||||||
|
<Icon
|
||||||
|
src={ChevronUpDown}
|
||||||
|
micro
|
||||||
|
size="16"
|
||||||
|
class="absolute bottom-1/2 translate-y-1/2 right-1 box-border pointer-events-none z-10 text-slate-600 dark:text-zinc-400"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
</Label>
|
</Label>
|
||||||
{/snippet}
|
{/snippet}
|
||||||
|
|
||||||
<Menu bind:open {placement}>
|
<Menu bind:open {placement}>
|
||||||
{#snippet target(attachment)}
|
{#snippet target(attachment)}
|
||||||
{@const render = passedTarget ?? selectTarget}
|
{@const render = passedTarget ?? selectTarget}
|
||||||
{@render render?.(attachment)}
|
{@render render?.(attachment)}
|
||||||
@@ -180,4 +182,4 @@
|
|||||||
</MenuButton>
|
</MenuButton>
|
||||||
{/if}
|
{/if}
|
||||||
{/each}
|
{/each}
|
||||||
</Menu>
|
</Menu>
|
||||||
@@ -153,13 +153,12 @@
|
|||||||
class="flex flex-row flex-wrap
|
class="flex flex-row flex-wrap
|
||||||
flex-1 gap-2 w-full lg:w-max max-w-full lg:self-end"
|
flex-1 gap-2 w-full lg:w-max max-w-full lg:self-end"
|
||||||
>
|
>
|
||||||
<div class="max-w-full">
|
|
||||||
<Select bind:value={settings.defaultSort.feed}>
|
<Select bind:value={settings.defaultSort.feed}>
|
||||||
{#snippet customLabel()}
|
{#snippet customLabel()}
|
||||||
<span class="flex items-center gap-1">
|
<div class="flex items-center gap-1">
|
||||||
<Icon src={GlobeAmericas} size="16" mini />
|
<Icon src={GlobeAmericas} size="16" mini />
|
||||||
{$t('filter.location.label')}
|
{$t('filter.location.label')}
|
||||||
</span>
|
</div>
|
||||||
{/snippet}
|
{/snippet}
|
||||||
<Option value="All">{$t('filter.location.all')}</Option>
|
<Option value="All">{$t('filter.location.all')}</Option>
|
||||||
<Option value="Local">{$t('filter.location.local')}</Option>
|
<Option value="Local">{$t('filter.location.local')}</Option>
|
||||||
@@ -170,17 +169,13 @@
|
|||||||
{$t('filter.location.moderator')}
|
{$t('filter.location.moderator')}
|
||||||
</Option>
|
</Option>
|
||||||
</Select>
|
</Select>
|
||||||
</div>
|
|
||||||
<div class="max-w-full">
|
|
||||||
<Sort bind:selected={settings.defaultSort.sort} navigate={false} />
|
<Sort bind:selected={settings.defaultSort.sort} navigate={false} />
|
||||||
</div>
|
|
||||||
<div class="max-w-full">
|
|
||||||
<Select bind:value={settings.defaultSort.comments}>
|
<Select bind:value={settings.defaultSort.comments}>
|
||||||
{#snippet customLabel()}
|
{#snippet customLabel()}
|
||||||
<span class="flex items-center gap-1">
|
<div class="flex items-center gap-1">
|
||||||
<Icon src={ChatBubbleOvalLeftEllipsis} size="14" mini />
|
<Icon src={ChatBubbleOvalLeftEllipsis} size="14" mini />
|
||||||
{$t('content.comments')}
|
{$t('content.comments')}
|
||||||
</span>
|
</div>
|
||||||
{/snippet}
|
{/snippet}
|
||||||
|
|
||||||
<Option icon={Fire} value="Hot">{$t('filter.sort.hot')}</Option>
|
<Option icon={Fire} value="Hot">{$t('filter.sort.hot')}</Option>
|
||||||
@@ -194,7 +189,6 @@
|
|||||||
</Option>
|
</Option>
|
||||||
</Select>
|
</Select>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
</Setting>
|
</Setting>
|
||||||
<ToggleSetting
|
<ToggleSetting
|
||||||
icon={BarsArrowDown}
|
icon={BarsArrowDown}
|
||||||
|
|||||||
Reference in new issue
Block a user