Skip to content

Commit

Permalink
feat: Properties panel is edited pencil styling
Browse files Browse the repository at this point in the history
  • Loading branch information
olzzon committed Nov 13, 2024
1 parent 958d8e3 commit 7f5fa09
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 19 deletions.
20 changes: 15 additions & 5 deletions packages/webui/src/client/styles/propertiesPanel.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -360,6 +360,12 @@ function EditingTypeAction(props: {
hasBeenEdited ? 'properties-panel-pop-up__has-been-edited' : ''
)}
>
{hasBeenEdited && (
<>
{' '}
<FontAwesomeIcon icon="pencil-alt" />
</>
)}{' '}
<a
className={classNames('propertiespanel-pop-up__switchbutton', 'switch-button', {
'sb-on': getPendingState() ?? (props.userEditOperation.isActive || false),
Expand All @@ -377,12 +383,6 @@ function EditingTypeAction(props: {
</div>
</a>
<span className="propertiespanel-pop-up__label">
{hasBeenEdited && (
<>
{' '}
<FontAwesomeIcon icon="pencil-alt" />
</>
)}{' '}
{translateMessage(props.userEditOperation.label, i18nTranslator)}
</span>
</div>
Expand Down Expand Up @@ -532,14 +532,8 @@ function EditingTypeChangeSourceLayerSource(props: {
hasBeenEdited ? 'properties-panel-pop-up__has-been-edited' : ''
)}
>
<div
className={classNames(
'properties-panel-pop-up__form__schema',
hasBeenEdited ? 'properties-panel-pop-up__has-been-edited' : ''
)}
onChange={handleSourceChange}
>
{hasBeenEdited && <FontAwesomeIcon icon="pencil-alt" />}
{hasBeenEdited && <FontAwesomeIcon icon="pencil-alt" />}
<div className="properties-panel-pop-up__form__schema" onChange={handleSourceChange}>
<StyledSchemaFormInPlace
schema={selectedGroupSchema}
object={selectedValues}
Expand Down

0 comments on commit 7f5fa09

Please sign in to comment.