From 7f5fa091f0841ea7220fd69856660cd79a9dd8f0 Mon Sep 17 00:00:00 2001 From: olzzon Date: Wed, 13 Nov 2024 10:33:27 +0100 Subject: [PATCH] feat: Properties panel is edited pencil styling --- .../src/client/styles/propertiesPanel.scss | 20 ++++++++++++----- .../ui/UserEditOperations/PropertiesPanel.tsx | 22 +++++++------------ 2 files changed, 23 insertions(+), 19 deletions(-) diff --git a/packages/webui/src/client/styles/propertiesPanel.scss b/packages/webui/src/client/styles/propertiesPanel.scss index 48a5185b61..296a6e37f7 100644 --- a/packages/webui/src/client/styles/propertiesPanel.scss +++ b/packages/webui/src/client/styles/propertiesPanel.scss @@ -188,14 +188,24 @@ margin-top: 15px; color: #ddd; padding: 4px 4px; - + position: relative; + display: flex; + align-items: flex-start; + gap: 8px; + + // Add positioning for the pencil icon + > svg { + margin-top: 4px; + flex-shrink: 0; + } + > .properties-panel-pop-up__form__schema { - border-color: pink; - border-width: 0px; - + border-color: pink; + border-width: 0px; + flex-grow: 1; } } - + > .properties-panel-pop-up__has-been-edited { background-color: #ffffff16; border-radius: 8px; diff --git a/packages/webui/src/client/ui/UserEditOperations/PropertiesPanel.tsx b/packages/webui/src/client/ui/UserEditOperations/PropertiesPanel.tsx index cb8c3d408e..db22b0311a 100644 --- a/packages/webui/src/client/ui/UserEditOperations/PropertiesPanel.tsx +++ b/packages/webui/src/client/ui/UserEditOperations/PropertiesPanel.tsx @@ -360,6 +360,12 @@ function EditingTypeAction(props: { hasBeenEdited ? 'properties-panel-pop-up__has-been-edited' : '' )} > + {hasBeenEdited && ( + <> + {' '} + + + )}{' '} - {hasBeenEdited && ( - <> - {' '} - - - )}{' '} {translateMessage(props.userEditOperation.label, i18nTranslator)} @@ -532,14 +532,8 @@ function EditingTypeChangeSourceLayerSource(props: { hasBeenEdited ? 'properties-panel-pop-up__has-been-edited' : '' )} > -
- {hasBeenEdited && } + {hasBeenEdited && } +