From fe924d0ee413925f1e55c236613de220e821cfe5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nikola=20Dere=C5=BEi=C4=87?= Date: Tue, 25 Nov 2025 14:48:55 +0100 Subject: [PATCH] (style) LocationCard: fixing shared button position, compacting layout --- app/ui/LocationCard.tsx | 28 +++++++++++++++------------- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/app/ui/LocationCard.tsx b/app/ui/LocationCard.tsx index e8352d1..bbb00f9 100644 --- a/app/ui/LocationCard.tsx +++ b/app/ui/LocationCard.tsx @@ -45,24 +45,27 @@ export const LocationCard: FC = ({ location, currency }) => {
- + -

{formatYearMonth(yearMonth)} {name}

-
- { - bills.map(bill => ) - } +

{formatYearMonth(yearMonth)} {name}

+ { + bills.length > 0 ? ( +
+ { + bills.map(bill => ) + } +
+ ) : null + } +
- {t("add-bill-button-tooltip")} + {t("add-bill-button-tooltip")} +
- - {monthlyExpense > 0 || seenByTenant || utilBillsProofOfPaymentUploadedAt ? <> -
{t("monthly-statement-legend")}
- - +
{t("monthly-statement-legend")}
{ monthlyExpense > 0 ?
@@ -93,7 +96,6 @@ export const LocationCard: FC = ({ location, currency }) => { : null } -
); }; \ No newline at end of file