From 557d7ecacc7e387ed988c2b7ef854dc3c224d882 Mon Sep 17 00:00:00 2001 From: padreug Date: Fri, 14 Nov 2025 16:39:32 +0100 Subject: [PATCH] Optimize TransactionsPage for mobile view Dramatically reduced wasted space and improved mobile UX by: - **Compact header**: Moved refresh button inline with title, similar to NostrFeed - **Compact controls**: All day filter buttons now on one row with Calendar icon - **Removed nested cards**: Eliminated Card wrapper around transactions list - **Full-width layout**: Transactions now use full screen width on mobile (border-b) and rounded cards on desktop (md:border md:rounded-lg) - **Consistent padding**: Uses px-0 on mobile, px-4 on desktop, matching NostrFeed patterns - **Reduced vertical space**: Compacted header section to about half the original height - **Cleaner imports**: Removed unused Card, CardContent, CardHeader, CardTitle, CardDescription, and Separator components Layout now follows NostrFeed's mobile-optimized patterns with max-w-3xl container and responsive spacing. Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- .../expenses/views/TransactionsPage.vue | 287 +++++++++--------- 1 file changed, 142 insertions(+), 145 deletions(-) diff --git a/src/modules/expenses/views/TransactionsPage.vue b/src/modules/expenses/views/TransactionsPage.vue index 0bcac73..9dcd525 100644 --- a/src/modules/expenses/views/TransactionsPage.vue +++ b/src/modules/expenses/views/TransactionsPage.vue @@ -8,10 +8,8 @@ import type { Transaction } from '../types' import type { FuzzySearchOptions } from '@/composables/useFuzzySearch' import FuzzySearch from '@/components/ui/fuzzy-search/FuzzySearch.vue' -import { Card, CardContent, CardDescription, CardHeader, CardTitle } from '@/components/ui/card' import { Button } from '@/components/ui/button' import { Badge } from '@/components/ui/badge' -import { Separator } from '@/components/ui/separator' import { CheckCircle2, Clock, @@ -177,164 +175,158 @@ onMounted(() => {