Skip to content

Commit

Permalink
Improve appearance on smaller screens
Browse files Browse the repository at this point in the history
  • Loading branch information
Serial-ATA committed May 15, 2022
1 parent b81d703 commit f112e4d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 19 deletions.
14 changes: 9 additions & 5 deletions util/gh-pages/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -98,21 +98,25 @@
}
}

@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;
}
}

Expand Down
14 changes: 0 additions & 14 deletions util/gh-pages/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

Expand Down

0 comments on commit f112e4d

Please sign in to comment.