mirror of
https://github.com/prymitive/karma
synced 2026-05-15 04:06:41 +00:00
fix(ui): dropdown width should depend on screen size
To better fit on small screens
This commit is contained in:
@@ -12,10 +12,6 @@
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
.dropdown-menu.components-navbar-historymenu {
|
||||
max-width: 400px;
|
||||
}
|
||||
|
||||
.dropdown-menu.components-navbar-historymenu > .dropdown-item {
|
||||
white-space: normal;
|
||||
}
|
||||
@@ -23,3 +19,19 @@
|
||||
.components-navbar-historymenu-labels {
|
||||
border-left: 3px solid;
|
||||
}
|
||||
|
||||
@media screen and (min-width: 1px) and (max-width: 599px) {
|
||||
.dropdown-menu.components-navbar-historymenu {
|
||||
max-width: 100%;
|
||||
}
|
||||
}
|
||||
@media screen and (min-width: 600px) and (max-width: 999px) {
|
||||
.dropdown-menu.components-navbar-historymenu {
|
||||
max-width: 500px;
|
||||
}
|
||||
}
|
||||
@media screen and (min-width: 1000px) {
|
||||
.dropdown-menu.components-navbar-historymenu {
|
||||
max-width: 600px;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user