From 9a510a86bb8d64953435d639e4f66bf75ae3c50a Mon Sep 17 00:00:00 2001 From: Sam Chau Date: Thu, 29 Jan 2026 02:26:11 +1030 Subject: [PATCH] style: stack badges on the bottom of card view for /databases --- src/routes/databases/views/CardView.svelte | 49 +++++++++++----------- 1 file changed, 24 insertions(+), 25 deletions(-) diff --git a/src/routes/databases/views/CardView.svelte b/src/routes/databases/views/CardView.svelte index 73771b8..ac4f40b 100644 --- a/src/routes/databases/views/CardView.svelte +++ b/src/routes/databases/views/CardView.svelte @@ -69,10 +69,10 @@ on:keydown={(e) => e.key === 'Enter' && handleCardClick(database)} role="button" tabindex="0" - class="group flex cursor-pointer items-center gap-4 rounded-lg border border-neutral-200 bg-white p-4 transition-all hover:border-neutral-300 hover:shadow-md dark:border-neutral-800 dark:bg-neutral-900 dark:hover:border-neutral-700" + class="group cursor-pointer rounded-lg border border-neutral-200 bg-white p-4 transition-all hover:border-neutral-300 hover:shadow-md dark:border-neutral-800 dark:bg-neutral-900 dark:hover:border-neutral-700" > - -
+ +
{#if !loadedImages.has(database.id)}
handleImageLoad(database.id)} />
-
+
{database.name} @@ -101,35 +101,34 @@ {/if}
+ +
+ e.stopPropagation()} + class="rounded-md p-1.5 text-neutral-400 transition-colors hover:text-neutral-600 dark:text-neutral-500 dark:hover:text-neutral-300" + > + + + +
- -
+ +
{database.repository_url.replace('https://github.com/', '')} {formatSyncStrategy(database.sync_strategy)} {formatLastSynced(database.last_synced_at)}
- - -
- e.stopPropagation()} - class="rounded-md p-1.5 text-neutral-400 transition-colors hover:text-neutral-600 dark:text-neutral-500 dark:hover:text-neutral-300" - > - - - -
{/each}