Skip to content

Commit

Permalink
fix(editor): make palette, form and properties panel overflow scroll
Browse files Browse the repository at this point in the history
  • Loading branch information
philippfromme committed Aug 16, 2021
1 parent 09f0d85 commit 365d578
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/form-js-editor/assets/form-js-editor.css
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
.fjs-editor-container .fjs-palette-container,
.fjs-editor-container .fjs-properties-container {
overflow-y: auto;
position: relative;
}

.fjs-editor-container .fjs-form-container,
Expand Down Expand Up @@ -154,7 +155,6 @@
width: 300px;
background-color: var(--color-silver-base-97);
border-left: solid 1px var(--color-silver-darken-80);
position: relative;
height: 100%;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@ const types = [


export default function Palette(props) {
return <Fragment>
return <div class="fjs-palette">
<div class="fjs-palette-header" title="Form elements library">
<span class="fjs-hide-compact">FORM ELEMENTS </span>LIBRARY
</div>
<div class="fjs-palette fjs-drag-container fjs-no-drop">
<div class="fjs-palette-fields fjs-drag-container fjs-no-drop">
{
types.map(({ label, type }) => {
const Icon = iconsByType[ type ];
Expand All @@ -59,5 +59,5 @@ export default function Palette(props) {
})
}
</div>
</Fragment>;
</div>;
}

0 comments on commit 365d578

Please sign in to comment.