Skip to content

Commit

Permalink
fix hidden list picker
Browse files Browse the repository at this point in the history
  • Loading branch information
kayla-glick committed Dec 24, 2023
1 parent 832e56f commit 11b0df9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 15 deletions.
2 changes: 1 addition & 1 deletion ui/core/components/list_picker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export class ListPicker<ModObject, ItemType> extends Input<ModObject, Array<Item
)

if (this.config.hideUi) {
this.rootElem.classList.add('hide-ui');
this.rootElem.classList.add('d-none');
}
if (this.config.horizontalLayout) {
this.config.inlineMenuBar = true;
Expand Down
14 changes: 0 additions & 14 deletions ui/scss/core/components/_list_picker.scss
Original file line number Diff line number Diff line change
Expand Up @@ -72,20 +72,6 @@
}
}

.list-picker-root.hide-ui {
.list-picker-item-container {
padding: 0 !important;
margin: 0 !important;
border: none !important;
}
.list-picker-item-header {
display: none !important;
}
.list-picker-new-button {
display: none !important;
}
}

.list-picker-root.horizontal {
flex-direction: row;
align-items: center;
Expand Down

0 comments on commit 11b0df9

Please sign in to comment.