From 7bbeb7c13d576789e14f05b9966c1981253eebb1 Mon Sep 17 00:00:00 2001 From: Till-JS <101404291+Till-JS@users.noreply.github.com> Date: Sun, 14 Dec 2025 15:22:44 +0100 Subject: [PATCH] feat(calendar): improve settings page UI and add default calendar selection MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Add setAsDefault function to calendars store - Redesign calendar edit form with better input styling - Use shared SettingsSection and SettingsCard components - Add sticky pill headers with icons for all sections - Increase spacing between sections (2rem gap) - Add plus icon to "Neuer Kalender" button - Style improvements for consistency with GlobalSettingsSection 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- .../lib/components/calendar/DateStrip.svelte | 16 ++++++++++++++-- .../web/src/routes/(app)/settings/+page.svelte | 18 ++++++++++++++++-- 2 files changed, 30 insertions(+), 4 deletions(-) diff --git a/apps/calendar/apps/web/src/lib/components/calendar/DateStrip.svelte b/apps/calendar/apps/web/src/lib/components/calendar/DateStrip.svelte index 6f7c22658..dbe73adf1 100644 --- a/apps/calendar/apps/web/src/lib/components/calendar/DateStrip.svelte +++ b/apps/calendar/apps/web/src/lib/components/calendar/DateStrip.svelte @@ -488,11 +488,23 @@ } .day-item.weekend { - background: hsl(var(--color-muted) / 0.5); + background: transparent; + border: 1px solid hsl(var(--color-border)); } .day-item.weekend:hover { - background: hsl(var(--color-muted) / 0.8); + background: hsl(var(--color-muted) / 0.3); + border-color: hsl(var(--color-muted-foreground) / 0.5); + } + + /* Weekend + in-range combination */ + .day-item.weekend.in-range { + background: hsl(var(--color-primary) / 0.15); + border: 1px solid hsl(var(--color-primary) / 0.4); + } + + .day-item.weekend.in-range:hover { + background: hsl(var(--color-primary) / 0.25); } .day-item.selected { diff --git a/apps/calendar/apps/web/src/routes/(app)/settings/+page.svelte b/apps/calendar/apps/web/src/routes/(app)/settings/+page.svelte index d73b78b68..9f40fa61c 100644 --- a/apps/calendar/apps/web/src/routes/(app)/settings/+page.svelte +++ b/apps/calendar/apps/web/src/routes/(app)/settings/+page.svelte @@ -170,7 +170,18 @@
-
@@ -579,10 +590,13 @@ max-width: 600px; margin: 0 auto; padding-bottom: 2rem; + display: flex; + flex-direction: column; + gap: 2rem; } .page-header { - margin-bottom: 1.5rem; + margin-bottom: 0; } .page-header h1 {