From 9d06de1265306b467b602c8f5d12983fb543b323 Mon Sep 17 00:00:00 2001 From: Knee Cola Date: Sun, 7 Dec 2025 18:41:20 +0100 Subject: [PATCH 1/3] (refactor) improving content responsivness --- app/ui/InfoBox.tsx | 2 +- app/ui/LocationEditForm.tsx | 8 +++----- app/ui/UserSettingsForm.tsx | 6 +++--- messages/hr.json | 2 +- 4 files changed, 8 insertions(+), 10 deletions(-) diff --git a/app/ui/InfoBox.tsx b/app/ui/InfoBox.tsx index 2380761..5601459 100644 --- a/app/ui/InfoBox.tsx +++ b/app/ui/InfoBox.tsx @@ -10,7 +10,7 @@ export const InfoBox: FC<{ const t = useTranslations("info-box"); return ( -
+
{title ?? t("default-title")} diff --git a/app/ui/LocationEditForm.tsx b/app/ui/LocationEditForm.tsx index 2572c2b..ae05270 100644 --- a/app/ui/LocationEditForm.tsx +++ b/app/ui/LocationEditForm.tsx @@ -194,7 +194,7 @@ export const LocationEditForm: FC = ({ location, yearMont - ) : // ELSE include hidden inputs to preserve existing values + ) : // ELSE include hidden inputs to preserve existing values <> = ({ location, yearMont { formValues.tenantPaymentMethod === "none" && formValues.proofOfPaymentType === "combined" ? -

+

{ t.rich("proof-of-payment-attachment-type--option--combined--hint", { @@ -247,15 +247,13 @@ export const LocationEditForm: FC = ({ location, yearMont ) }

: -

+

{ formValues.proofOfPaymentType === "combined" ? t("proof-of-payment-attachment-type--option--combined--tooltip") : t("proof-of-payment-attachment-type--option--per-bill--tooltip") }

- - } diff --git a/app/ui/UserSettingsForm.tsx b/app/ui/UserSettingsForm.tsx index b508932..45877ac 100644 --- a/app/ui/UserSettingsForm.tsx +++ b/app/ui/UserSettingsForm.tsx @@ -282,7 +282,7 @@ const FormFields: FC = ({ userSettings, errors, message }) => { { formValues.enableRevolutPayment ? (
-
{t("revolut-form-title")}
+
{t("revolut-form-title")}