From eb87b9344aff328ee981b35b2e89f28985ffdcbc Mon Sep 17 00:00:00 2001 From: Anton Tranelis Date: Fri, 10 Oct 2025 10:35:00 +0200 Subject: [PATCH] updated backend --- .../development/snapshot/fields/types/Header.json | 1 + .../development/snapshot/fields/types/Profile.json | 5 +++-- .../development/snapshot/fields/types/small_form.json | 5 +++-- .../development/snapshot/fields/types/small_view.json | 5 +++-- .../ItemPopupComponents/HeaderView/ItemTitle.tsx | 2 +- .../Map/Subcomponents/ItemPopupComponents/StartEndView.tsx | 2 +- 6 files changed, 12 insertions(+), 8 deletions(-) diff --git a/backend/directus-config/development/snapshot/fields/types/Header.json b/backend/directus-config/development/snapshot/fields/types/Header.json index c0bc8b9e..7c1d379b 100644 --- a/backend/directus-config/development/snapshot/fields/types/Header.json +++ b/backend/directus-config/development/snapshot/fields/types/Header.json @@ -13,6 +13,7 @@ "interface": "group-detail", "note": null, "options": { + "headerIcon": "credit_card", "start": "closed" }, "readonly": false, diff --git a/backend/directus-config/development/snapshot/fields/types/Profile.json b/backend/directus-config/development/snapshot/fields/types/Profile.json index 4ffa0164..a4d2ed72 100644 --- a/backend/directus-config/development/snapshot/fields/types/Profile.json +++ b/backend/directus-config/development/snapshot/fields/types/Profile.json @@ -13,11 +13,12 @@ "interface": "group-detail", "note": null, "options": { - "headerIcon": "lab_profile" + "headerIcon": "lab_profile", + "start": "closed" }, "readonly": false, "required": false, - "sort": 9, + "sort": 10, "special": [ "alias", "no-data", diff --git a/backend/directus-config/development/snapshot/fields/types/small_form.json b/backend/directus-config/development/snapshot/fields/types/small_form.json index 064a143f..61675926 100644 --- a/backend/directus-config/development/snapshot/fields/types/small_form.json +++ b/backend/directus-config/development/snapshot/fields/types/small_form.json @@ -13,11 +13,12 @@ "interface": "group-detail", "note": null, "options": { - "headerIcon": "edit_square" + "headerIcon": "edit_square", + "start": "closed" }, "readonly": false, "required": false, - "sort": 8, + "sort": 9, "special": [ "alias", "no-data", diff --git a/backend/directus-config/development/snapshot/fields/types/small_view.json b/backend/directus-config/development/snapshot/fields/types/small_view.json index 4dddfbc2..6685a81a 100644 --- a/backend/directus-config/development/snapshot/fields/types/small_view.json +++ b/backend/directus-config/development/snapshot/fields/types/small_view.json @@ -13,11 +13,12 @@ "interface": "group-detail", "note": null, "options": { - "headerIcon": "wysiwyg" + "headerIcon": "wysiwyg", + "start": "closed" }, "readonly": false, "required": false, - "sort": 7, + "sort": 8, "special": [ "alias", "no-data", diff --git a/lib/src/Components/Map/Subcomponents/ItemPopupComponents/HeaderView/ItemTitle.tsx b/lib/src/Components/Map/Subcomponents/ItemPopupComponents/HeaderView/ItemTitle.tsx index 5434de77..3bb795c7 100644 --- a/lib/src/Components/Map/Subcomponents/ItemPopupComponents/HeaderView/ItemTitle.tsx +++ b/lib/src/Components/Map/Subcomponents/ItemPopupComponents/HeaderView/ItemTitle.tsx @@ -48,7 +48,7 @@ export function ItemTitle({ {address} - {distance && distance >= 0.1 && ` (${formatDistance(distance) ?? ''})`} + {distance && distance >= 0.1 ? ` (${formatDistance(distance) ?? ''})` : ''} )} diff --git a/lib/src/Components/Map/Subcomponents/ItemPopupComponents/StartEndView.tsx b/lib/src/Components/Map/Subcomponents/ItemPopupComponents/StartEndView.tsx index 0855d2c2..01119772 100644 --- a/lib/src/Components/Map/Subcomponents/ItemPopupComponents/StartEndView.tsx +++ b/lib/src/Components/Map/Subcomponents/ItemPopupComponents/StartEndView.tsx @@ -8,7 +8,7 @@ import type { Item } from '#types/Item' */ export const StartEndView = ({ item }: { item?: Item }) => { return ( -
+