diff options
| author | Serial <69764315+Serial-ATA@users.noreply.github.com> | 2022-05-15 12:43:35 -0400 |
|---|---|---|
| committer | Serial <69764315+Serial-ATA@users.noreply.github.com> | 2022-05-15 12:43:35 -0400 |
| commit | f112e4d445006426830752e23c716efb835acea5 (patch) | |
| tree | aa4e5730ede8d2e29f610eb80e881666d328b049 /util | |
| parent | b81d7039704d2b9f84c7a90eee923a4a7a5304ac (diff) | |
| download | rust-f112e4d445006426830752e23c716efb835acea5.tar.gz rust-f112e4d445006426830752e23c716efb835acea5.zip | |
Improve appearance on smaller screens
Diffstat (limited to 'util')
| -rw-r--r-- | util/gh-pages/index.html | 14 | ||||
| -rw-r--r-- | util/gh-pages/script.js | 14 |
2 files changed, 9 insertions, 19 deletions
diff --git a/util/gh-pages/index.html b/util/gh-pages/index.html index 2f586077af5..1171da3f4e5 100644 --- a/util/gh-pages/index.html +++ b/util/gh-pages/index.html @@ -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; } } diff --git a/util/gh-pages/script.js b/util/gh-pages/script.js index 174758ad931..c3250afdea2 100644 --- a/util/gh-pages/script.js +++ b/util/gh-pages/script.js @@ -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; } } |
