Skip to content

Commit

Permalink
geosolutions-it#10112 - Fix style editor for raster layer channel blo…
Browse files Browse the repository at this point in the history
…ck (geosolutions-it#10118) (geosolutions-it#10135)

* geosolutions-it#10112 - Fix style editor for raster layer channel block

* code refactor

* Update web/client/components/styleeditor/Fields.jsx

---------

Co-authored-by: Matteo V <[email protected]>
(cherry picked from commit af6c380)
  • Loading branch information
dsuren1 authored Mar 27, 2024
1 parent 0a0de14 commit 5036275
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion web/client/components/styleeditor/Fields.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -647,7 +647,7 @@ function Fields({
const Component = isPropertyField ? PropertySelector : FieldComponent;
const disabled = isDisabled && isDisabled(properties[key], state.current.properties, fieldsConfig);
const visible = isVisible ? isVisible(properties[key], state.current.properties, format) : true;
return visible ? (<div className="ms-symbolizer-field-wrapper">
return visible ? (<div className={`ms-symbolizer-field-wrapper ${type || ""}`}>
<Component
{...fieldsConfig}
key={key}
Expand Down
3 changes: 3 additions & 0 deletions web/client/themes/default/less/style-editor.less
Original file line number Diff line number Diff line change
Expand Up @@ -620,6 +620,9 @@ Ported to CodeMirror by Peter Kroon
.ms-symbolizer-field-wrapper {
display: flex;
align-items: center;
&.channel {
display: unset;
}
}

.ms-symbolizer-nested-fields {
Expand Down

0 comments on commit 5036275

Please sign in to comment.