fix: badge spacing
This commit is contained in:
1 parent
4b39d59c02
commit
c5f0f2707b
3 files changed
+15
-15
No files matched your search
@@ -15,8 +15,8 @@
|
|||||||
</span>
|
</span>
|
||||||
{/if}
|
{/if}
|
||||||
</svelte:fragment>
|
</svelte:fragment>
|
||||||
<option value="card">Cards</option>
|
|
||||||
<option value="cozy">Cozy</option>
|
<option value="cozy">Cozy</option>
|
||||||
<option value="list">List</option>
|
<option value="list">List</option>
|
||||||
<option value="compact">Compact</option>
|
<option value="compact">Compact</option>
|
||||||
|
<option value="card">Legacy</option>
|
||||||
</Select>
|
</Select>
|
||||||
@@ -106,39 +106,39 @@
|
|||||||
</span>
|
</span>
|
||||||
|
|
||||||
<div
|
<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;"
|
style="grid-area: badges;"
|
||||||
>
|
>
|
||||||
{#if badges.nsfw}
|
{#if badges.nsfw}
|
||||||
<Badge color="red-subtle">NSFW</Badge>
|
<Badge color="red-subtle">NSFW</Badge>
|
||||||
{/if}
|
{/if}
|
||||||
{#if badges.saved}
|
{#if badges.saved}
|
||||||
<Badge label="Saved" color="yellow-subtle">
|
<Badge label="Saved" color="yellow-subtle" allowIconOnly>
|
||||||
<Icon src={Bookmark} mini size="12" />
|
<Icon src={Bookmark} mini size="12" slot="icon" />
|
||||||
<span class="max-md:hidden">Saved</span>
|
Saved
|
||||||
</Badge>
|
</Badge>
|
||||||
{/if}
|
{/if}
|
||||||
{#if badges.locked}
|
{#if badges.locked}
|
||||||
<Badge label="Locked" color="yellow-subtle">
|
<Badge label="Locked" color="yellow-subtle" allowIconOnly>
|
||||||
<Icon src={LockClosed} mini size="14" />
|
<Icon src={LockClosed} mini size="14" slot="icon" />
|
||||||
<span class="max-md:hidden">Locked</span>
|
<span class="max-md:hidden">Locked</span>
|
||||||
</Badge>
|
</Badge>
|
||||||
{/if}
|
{/if}
|
||||||
{#if badges.removed}
|
{#if badges.removed}
|
||||||
<Badge label="Removed" color="red-subtle">
|
<Badge label="Removed" color="red-subtle" allowIconOnly>
|
||||||
<Icon src={Trash} mini size="14" />
|
<Icon src={Trash} mini size="14" slot="icon" />
|
||||||
<span class="max-md:hidden">Removed</span>
|
<span class="max-md:hidden">Removed</span>
|
||||||
</Badge>
|
</Badge>
|
||||||
{/if}
|
{/if}
|
||||||
{#if badges.deleted}
|
{#if badges.deleted}
|
||||||
<Badge label="Deleted" color="red-subtle">
|
<Badge label="Deleted" color="red-subtle" allowIconOnly>
|
||||||
<Icon src={Trash} mini size="14" />
|
<Icon src={Trash} mini size="14" slot="icon" />
|
||||||
<span class="max-md:hidden">Deleted</span>
|
<span class="max-md:hidden">Deleted</span>
|
||||||
</Badge>
|
</Badge>
|
||||||
{/if}
|
{/if}
|
||||||
{#if badges.featured}
|
{#if badges.featured}
|
||||||
<Badge label="Featured" color="green-subtle">
|
<Badge label="Featured" color="green-subtle" allowIconOnly>
|
||||||
<Icon src={Megaphone} mini size="14" />
|
<Icon src={Megaphone} mini size="14" slot="icon" />
|
||||||
<span class="max-md:hidden">Featured</span>
|
<span class="max-md:hidden">Featured</span>
|
||||||
</Badge>
|
</Badge>
|
||||||
{/if}
|
{/if}
|
||||||
|
|||||||
@@ -61,11 +61,11 @@
|
|||||||
{#if $userSettings.view == 'list'}
|
{#if $userSettings.view == 'list'}
|
||||||
Show posts in a list, with post bodies and compact images.
|
Show posts in a list, with post bodies and compact images.
|
||||||
{:else if $userSettings.view == 'cozy'}
|
{: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'}
|
{:else if $userSettings.view == 'compact'}
|
||||||
Show posts in a list, without post bodies and with tighter spacing.
|
Show posts in a list, without post bodies and with tighter spacing.
|
||||||
{:else if $userSettings.view == 'card'}
|
{:else if $userSettings.view == 'card'}
|
||||||
Show posts in cards, with large images.
|
Photon's old post style.
|
||||||
{/if}
|
{/if}
|
||||||
</p>
|
</p>
|
||||||
</Setting>
|
</Setting>
|
||||||
|
|||||||
Reference in new issue
Block a user