fixes to mobile responsive view

This commit is contained in:
r888888888
2017-04-20 14:28:37 -07:00
parent 865a8d7a0a
commit 9718c6e107
5 changed files with 41 additions and 10 deletions

View File

@@ -5,7 +5,9 @@
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon">
<link rel="top" title="<%= Danbooru.config.app_name %>" href="/">
<%= csrf_meta_tag %>
<meta name="viewport" content="width=device-width,initial-scale=1">
<% unless cookies[:dm] %>
<meta name="viewport" content="width=device-width,initial-scale=1">
<% end %>
<meta name="current-user-name" content="<%= CurrentUser.name %>">
<meta name="current-user-id" content="<%= CurrentUser.id %>">
<meta name="current-user-can-approve-posts" content="<%= CurrentUser.can_approve_posts? %>">

View File

@@ -15,7 +15,7 @@
<% end %>
<%= hidden_field_tag "ms", "1" %>
<%= submit_tag "Go", :name => nil %>
<%= submit_tag "+", "data-jq-dropdown" => "#search-dropdown" %>
<%= submit_tag "+", :id => "expand-search", "data-jq-dropdown" => "#search-dropdown" %>
<div id="search-dropdown" class="jq-dropdown jq-dropdown-tip">
<ul class="jq-dropdown-menu">
<% if SavedSearch.enabled? && CurrentUser.show_saved_searches? %>

View File

@@ -8,4 +8,8 @@
<% if CurrentUser.user.enable_post_navigation %>
&ndash; <%= link_to "Keyboard shortcuts available", keyboard_shortcuts_path %>
<% end %>
<span id="desktop-version-link">
&ndash;
<%= link_to "Desktop version", posts_path(:dm => "1"), :rel => "nofollow" %>
</span>
</footer>