Improve appearance on smaller screens
This commit is contained in:
parent
b81d703970
commit
f112e4d445
2 changed files with 9 additions and 19 deletions
|
|
@ -98,21 +98,25 @@ Otherwise, have a great day =^.^=
|
|||
}
|
||||
}
|
||||
|
||||
@media (min-width: 400px) {
|
||||
@media (min-width: 405px) {
|
||||
#upper-filters {
|
||||
display: flex;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 412px) {
|
||||
@media (max-width: 430px) {
|
||||
/* Turn the version filter list to the left */
|
||||
#version-filter-selector {
|
||||
right: 0;
|
||||
left: auto;
|
||||
}
|
||||
}
|
||||
|
||||
<!-- TODO -->
|
||||
#version-filter-count {
|
||||
display: none;
|
||||
@media (max-width: 412px) {
|
||||
#upper-filters,
|
||||
.panel-body .search-control {
|
||||
padding-right: 8px;
|
||||
padding-left: 8px;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -215,20 +215,6 @@
|
|||
default:
|
||||
return true
|
||||
}
|
||||
|
||||
let cmpFilter;
|
||||
if (filter === "≥") {
|
||||
cmpFilter = "≤";
|
||||
} else {
|
||||
cmpFilter = "≥";
|
||||
}
|
||||
|
||||
if (filters[cmpFilter].enabled) {
|
||||
let cmpMinorVersion = filters[cmpFilter].minorVersion;
|
||||
return (cmpFilter === "≥") ? (lintMinorVersion >= cmpMinorVersion) : (lintMinorVersion <= cmpMinorVersion);
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue