mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2022-03-16.git
synced 2024-08-15 00:53:18 +00:00
Center sorting options on small displays (<640px)
This commit is contained in:
parent
00be2e067e
commit
102d88a594
2 changed files with 8 additions and 1 deletions
|
@ -183,4 +183,11 @@ only show up when the screen is wide enough */
|
|||
|
||||
#content-navigation {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
/* Center sorting options when screen is less than 640px*/
|
||||
@media screen and (max-width: 640px) {
|
||||
#sort-options {
|
||||
margin-right: auto;
|
||||
}
|
||||
}
|
|
@ -181,7 +181,7 @@
|
|||
<% route = content_type == 1 ? "/videos" : "/playlists" %>
|
||||
<% url = "/channel/#{channel.ucid + route}" %>
|
||||
|
||||
<div class="pure-menu pure-menu-horizontal" style="display: flex;">
|
||||
<div class="pure-menu pure-menu-horizontal" id="sort-options" style="display: flex;">
|
||||
<ul class="pure-menu-list" style="margin-left: auto;">
|
||||
<% sort_options.each do |sort| %>
|
||||
<% if sort_by == sort %>
|
||||
|
|
Loading…
Reference in a new issue