fix: badge spacing

This commit is contained in:
Xylight committed 2024-03-24 15:38:59 -07:00
1 parent 4b39d59c02
commit c5f0f2707b
3 files changed
+15 -15

No files matched your search

@@ -15,8 +15,8 @@
</span>
{/if}
</svelte:fragment>
<option value="card">Cards</option>
<option value="cozy">Cozy</option>
<option value="list">List</option>
<option value="compact">Compact</option>
<option value="card">Legacy</option>
</Select>
+12 -12
View File
@@ -106,39 +106,39 @@
</span>
<div
class="flex flex-row items-center place-self-end overflow-auto [&>*]:flex-shrink-0"
class="flex flex-row items-center place-self-end overflow-auto gap-2 [&>*]:flex-shrink-0"
style="grid-area: badges;"
>
{#if badges.nsfw}
<Badge color="red-subtle">NSFW</Badge>
{/if}
{#if badges.saved}
<Badge label="Saved" color="yellow-subtle">
<Icon src={Bookmark} mini size="12" />
<span class="max-md:hidden">Saved</span>
<Badge label="Saved" color="yellow-subtle" allowIconOnly>
<Icon src={Bookmark} mini size="12" slot="icon" />
Saved
</Badge>
{/if}
{#if badges.locked}
<Badge label="Locked" color="yellow-subtle">
<Icon src={LockClosed} mini size="14" />
<Badge label="Locked" color="yellow-subtle" allowIconOnly>
<Icon src={LockClosed} mini size="14" slot="icon" />
<span class="max-md:hidden">Locked</span>
</Badge>
{/if}
{#if badges.removed}
<Badge label="Removed" color="red-subtle">
<Icon src={Trash} mini size="14" />
<Badge label="Removed" color="red-subtle" allowIconOnly>
<Icon src={Trash} mini size="14" slot="icon" />
<span class="max-md:hidden">Removed</span>
</Badge>
{/if}
{#if badges.deleted}
<Badge label="Deleted" color="red-subtle">
<Icon src={Trash} mini size="14" />
<Badge label="Deleted" color="red-subtle" allowIconOnly>
<Icon src={Trash} mini size="14" slot="icon" />
<span class="max-md:hidden">Deleted</span>
</Badge>
{/if}
{#if badges.featured}
<Badge label="Featured" color="green-subtle">
<Icon src={Megaphone} mini size="14" />
<Badge label="Featured" color="green-subtle" allowIconOnly>
<Icon src={Megaphone} mini size="14" slot="icon" />
<span class="max-md:hidden">Featured</span>
</Badge>
{/if}
+2 -2
View File
@@ -61,11 +61,11 @@
{#if $userSettings.view == 'list'}
Show posts in a list, with post bodies and compact images.
{:else if $userSettings.view == 'cozy'}
Card view, but without a background.
Show posts with large images, rich embeds and longer post bodies.
{:else if $userSettings.view == 'compact'}
Show posts in a list, without post bodies and with tighter spacing.
{:else if $userSettings.view == 'card'}
Show posts in cards, with large images.
Photon's old post style.
{/if}
</p>
</Setting>