Skip to content

Commit

Permalink
Merge pull request #4109 from wowsims/list-picker-hidden-fix
Browse files Browse the repository at this point in the history
fix hidden list picker
  • Loading branch information
kayla-glick authored Dec 24, 2023
2 parents 7fdaa43 + 11b0df9 commit 95aacde
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 95aacde

Please sign in to comment.