Skip to content

Commit

Permalink
Move style for user search dropdown to scoped style
Browse files Browse the repository at this point in the history
In 60c2bad, the user search dropdown was widened to fill the width of the modal - this was achieved using !important in the Primevue stylesheet.
This has been moved to a locally scoped style inside SearchUsers.vue instead, eliminating the need for !important.
  • Loading branch information
norrisng-bc committed Nov 6, 2023
1 parent 8738585 commit f692250
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 0 additions & 4 deletions frontend/src/assets/primevue.scss
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,6 @@
}
}

.p-dropdown.usersearch {
width: 100% !important
}

.p-checkbox,
.p-radiobutton {
&.p-checkbox-checked,
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/components/form/SearchUsers.vue
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ onMounted(() => {
:option-label="(option) => getUserDropdownLabel(option)"
editable
:placeholder="userSearchPlaceholder"
class="mt-1 mb-4 usersearch"
class="mt-1 mb-4"
:class="invalidSelectedUser ? 'p-invalid' : ''"
@input="onInput"
@change="onChange"
Expand All @@ -177,6 +177,6 @@ onMounted(() => {

<style lang="scss" scoped>
.p-dropdown {
width: 60%;
width: 100%;
}
</style>

0 comments on commit f692250

Please sign in to comment.