Enhances account display in expense form

Improves the visual presentation of the selected account in the add expense form by using a badge.

This makes the selected account more prominent and provides a clearer distinction from other text elements.
This commit is contained in:
padreug 2025-11-08 00:22:13 +01:00
parent fff42d170e
commit d7cd72f850

View file

@ -161,9 +161,10 @@
<!-- Selected account info -->
<div class="p-3 rounded-lg bg-muted/50">
<p class="text-sm font-medium text-foreground mb-1">
Account: {{ selectedAccount?.name }}
</p>
<div class="flex items-center gap-2 mb-1">
<span class="text-sm text-muted-foreground">Account:</span>
<Badge variant="secondary" class="font-mono">{{ selectedAccount?.name }}</Badge>
</div>
<p
v-if="selectedAccount?.description"
class="text-xs text-muted-foreground"
@ -212,6 +213,7 @@ import { Button } from '@/components/ui/button'
import { Input } from '@/components/ui/input'
import { Textarea } from '@/components/ui/textarea'
import { Checkbox } from '@/components/ui/checkbox'
import { Badge } from '@/components/ui/badge'
import {
FormControl,
FormDescription,