Skip to content

Commit

Permalink
Add stricter styling for searchbar
Browse files Browse the repository at this point in the history
  • Loading branch information
domlimm committed Aug 15, 2022
1 parent 1f79ce1 commit a39a92d
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion packages/vue-components/src/Searchbar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,16 @@ export default {
}
}
@media screen and (min-width: 768px) and (max-width: 878px) {
/* For general tablets in portrait e.g. iPad */
@media screen and (min-width: 768px) and (max-width: 878px) and (orientation: portrait) {
.form-control {
min-width: 8em;
max-width: 16em; /* twice of min-width, to accommodate a range of lengths */
}
}
/* For general tablets in landscape e.g. iPad */
@media screen and (min-width: 768px) and (max-width: 878px) and (orientation: landscape) {
.form-control {
min-width: 9em;
max-width: 18em; /* twice of min-width, to accommodate a range of lengths */
Expand Down

0 comments on commit a39a92d

Please sign in to comment.