From 1b9a868bab472c352865a555255e127a2968ae65 Mon Sep 17 00:00:00 2001 From: Ancymonek Date: Mon, 12 Feb 2024 19:55:11 +0100 Subject: [PATCH 1/2] UI adjustments --- src/components/downloadCard.tsx | 16 +++++----- src/components/legend.tsx | 8 ++--- src/components/sidebar.css | 30 +++++++------------ src/components/sidebar/buttons.tsx | 2 +- .../sidebar/defibrillatorDetails.tsx | 6 ++-- 5 files changed, 28 insertions(+), 34 deletions(-) diff --git a/src/components/downloadCard.tsx b/src/components/downloadCard.tsx index f22a5ba..b7e2f57 100644 --- a/src/components/downloadCard.tsx +++ b/src/components/downloadCard.tsx @@ -1,4 +1,4 @@ -import { mdiDownload } from "@mdi/js"; +import { mdiDownload, mdiFileDownloadOutline } from "@mdi/js"; import Icon from "@mdi/react"; import React, { useEffect, useState } from "react"; import { useTranslation } from "react-i18next"; @@ -42,10 +42,10 @@ export default function DownloadCard() { return `${countryName(country)} (${country.featureCount})`; } return ( -
-
+
+

- {t("sidebar.download_title")}

+
+
- + {t("sidebar.geojson")} -
+
); diff --git a/src/components/legend.tsx b/src/components/legend.tsx index 9dc474f..4c9d567 100644 --- a/src/components/legend.tsx +++ b/src/components/legend.tsx @@ -50,15 +50,15 @@ export default function MapLegend() { }, ]; return ( -
+
-

+

{t("sidebar.map_legend_title")}

@@ -72,7 +72,7 @@ export default function MapLegend() { title={tag} alt={text} src={icon.toString()} - className="legend-image image is-32x32" + className="legend-image image is-24x24" />
From 7336ad32b527c113006d8a1cfd8d96a0f403589f Mon Sep 17 00:00:00 2001 From: Filip Czaplicki Date: Mon, 12 Feb 2024 21:59:19 +0100 Subject: [PATCH 2/2] Formatting --- src/components/downloadCard.tsx | 32 +++++++++---------- .../sidebar/defibrillatorDetails.tsx | 9 ++++-- 2 files changed, 23 insertions(+), 18 deletions(-) diff --git a/src/components/downloadCard.tsx b/src/components/downloadCard.tsx index b7e2f57..ebd5588 100644 --- a/src/components/downloadCard.tsx +++ b/src/components/downloadCard.tsx @@ -45,7 +45,7 @@ export default function DownloadCard() {

-

- +
= ({ setSidebarAction(SidebarAction.uploadPhoto); }} > - + {t("photo.upload")}