From 13f4dee59f61f10623964b85775471ef01f043c6 Mon Sep 17 00:00:00 2001 From: evazion Date: Mon, 19 Aug 2019 00:46:31 -0500 Subject: [PATCH] footer: only show keyboard shortcuts link on desktop. --- app/javascript/src/styles/specific/z_responsive.scss | 4 ++++ app/views/static/_footer.html.erb | 4 +++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/app/javascript/src/styles/specific/z_responsive.scss b/app/javascript/src/styles/specific/z_responsive.scss index f2e1dd0ec..9e78293ef 100644 --- a/app/javascript/src/styles/specific/z_responsive.scss +++ b/app/javascript/src/styles/specific/z_responsive.scss @@ -9,6 +9,10 @@ } @media screen and (max-width: 660px) { + #keyboard-shortcuts-link { + display: none; + } + #desktop-version-link { display: inline; } diff --git a/app/views/static/_footer.html.erb b/app/views/static/_footer.html.erb index d84a7c018..87cd389cf 100644 --- a/app/views/static/_footer.html.erb +++ b/app/views/static/_footer.html.erb @@ -6,7 +6,9 @@ – <%= link_to "Rules", terms_of_service_path %> – <%= link_to "Contact", contact_path %> <% if CurrentUser.user.enable_post_navigation %> - – <%= link_to "Keyboard shortcuts available", keyboard_shortcuts_path %> + + – <%= link_to "Keyboard shortcuts", keyboard_shortcuts_path %> + <% end %> <% if CurrentUser.is_member? %>