From 35e0df26fe38b1dcf163dae6110a7dd5dc56f161 Mon Sep 17 00:00:00 2001 From: "ethan.chen" Date: Tue, 3 Jun 2025 17:41:10 +0800 Subject: [PATCH] feat: enhance UI components with improved styling, transitions, and layout adjustments across App, MediaFormModal, MediaItem, and StarRating components --- src/App.svelte | 24 ++++----- src/lib/MediaFormModal.svelte | 20 ++++---- src/lib/MediaItem.svelte | 92 ++++++++++++++++------------------- src/lib/StarRating.svelte | 8 +-- src/lib/utils.ts | 3 +- 5 files changed, 70 insertions(+), 77 deletions(-) diff --git a/src/App.svelte b/src/App.svelte index 8965441..7975618 100644 --- a/src/App.svelte +++ b/src/App.svelte @@ -273,16 +273,16 @@ {:else} -
-
+
+
-
+
-
+
{#each categories as category}
-
+
{#if loading}
{:else} -
+
{#each mediaList as media} {/each} @@ -315,19 +315,19 @@
-
+
Showing {(currentPage - 1) * pageSize + 1} to {Math.min(currentPage * pageSize, totalItems)} of {totalItems} items
-
+