From 0d19e878976a885d6d5b7085ebf9d6278bd28514 Mon Sep 17 00:00:00 2001 From: padreug Date: Tue, 21 Oct 2025 22:57:43 +0200 Subject: [PATCH] Adds expandable event card Improves the Scheduled Event Card component by adding an expandable view. This change introduces a collapsed view that shows the event time and title, and an expanded view which displays all event details. This allows users to quickly scan the scheduled events and expand those they are interested in. --- .../components/ScheduledEventCard.vue | 157 ++++++++++++------ 1 file changed, 109 insertions(+), 48 deletions(-) diff --git a/src/modules/nostr-feed/components/ScheduledEventCard.vue b/src/modules/nostr-feed/components/ScheduledEventCard.vue index 058425f..5acfa51 100644 --- a/src/modules/nostr-feed/components/ScheduledEventCard.vue +++ b/src/modules/nostr-feed/components/ScheduledEventCard.vue @@ -33,6 +33,9 @@ const emit = defineEmits() // Confirmation dialog state const showConfirmDialog = ref(false) +// Collapsed state (collapsed by default) +const isExpanded = ref(false) + // Event address for tracking completion const eventAddress = computed(() => `31922:${props.event.pubkey}:${props.event.dTag}`) @@ -113,69 +116,127 @@ function confirmMarkComplete() { function cancelMarkComplete() { showConfirmDialog.value = false } + +// Toggle expanded/collapsed state +function toggleExpanded() { + isExpanded.value = !isExpanded.value +}