fix: arrow icon being misplaced

This commit is contained in:
James Xylight committed 2025-08-30 13:11:16 -07:00
1 parent f6172a1ed3
commit 4badda6182
2 files changed
+14 -18

No files matched your search

+10 -8
View File
@@ -95,12 +95,7 @@
{#snippet selectTarget(attachment: Attachment)}
<Label text={label} class={['space-y-1 relative', clazz, baseClass]}>
{@render customLabel?.()}
<Icon
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"
/>
<div class="relative" role="presentation">
<select
{@attach attachment}
{...rest}
@@ -130,10 +125,17 @@
{/if}
{@render children?.()}
</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>
{/snippet}
<Menu bind:open {placement}>
<Menu bind:open {placement}>
{#snippet target(attachment)}
{@const render = passedTarget ?? selectTarget}
{@render render?.(attachment)}
@@ -180,4 +182,4 @@
</MenuButton>
{/if}
{/each}
</Menu>
</Menu>
+4 -10
View File
@@ -153,13 +153,12 @@
class="flex flex-row flex-wrap
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}>
{#snippet customLabel()}
<span class="flex items-center gap-1">
<div class="flex items-center gap-1">
<Icon src={GlobeAmericas} size="16" mini />
{$t('filter.location.label')}
</span>
</div>
{/snippet}
<Option value="All">{$t('filter.location.all')}</Option>
<Option value="Local">{$t('filter.location.local')}</Option>
@@ -170,17 +169,13 @@
{$t('filter.location.moderator')}
</Option>
</Select>
</div>
<div class="max-w-full">
<Sort bind:selected={settings.defaultSort.sort} navigate={false} />
</div>
<div class="max-w-full">
<Select bind:value={settings.defaultSort.comments}>
{#snippet customLabel()}
<span class="flex items-center gap-1">
<div class="flex items-center gap-1">
<Icon src={ChatBubbleOvalLeftEllipsis} size="14" mini />
{$t('content.comments')}
</span>
</div>
{/snippet}
<Option icon={Fire} value="Hot">{$t('filter.sort.hot')}</Option>
@@ -194,7 +189,6 @@
</Option>
</Select>
</div>
</div>
</Setting>
<ToggleSetting
icon={BarsArrowDown}