mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-01 23:12:02 +00:00
Improve appearance on smaller screens
This commit is contained in:
parent
b81d703970
commit
f112e4d445
@ -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…
Reference in New Issue
Block a user