Skip to content

Commit

Permalink
Fix unread followed nav icon on mobile
Browse files Browse the repository at this point in the history
Fixes #791
  • Loading branch information
glebm committed Feb 19, 2019
1 parent ab7102b commit 8dc4e1a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions app/assets/stylesheets/thredded/layout/_user-navigation.scss
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,7 @@
height: 1em;
top: 0.1em;
position: relative;
@include thredded-media-tablet-and-down {
display: none;
}
}
2 changes: 1 addition & 1 deletion app/views/thredded/shared/nav/_unread_topics.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<%= link_to current ? nav_back_path(messageboard) : unread_topics_path(messageboard: messageboard), rel: 'nofollow' do %>
<span class="thredded--nav-text"><%= t('thredded.nav.unread_topics') %></span>
<% if unread_followed_topics_count > 0 -%>
<%= define_svg_icons 'thredded/follow.svg' %>
<%= shared_inline_svg 'thredded/follow.svg', class: 'thredded--icon' %>
<span class="thredded--user-navigation--unread-topics--followed-count"><%=shared_inline_svg "thredded/follow.svg", class: "thredded--unread-topics--followed-icon", role:"img" %>
<span data-unread-followed-count><%= unread_followed_topics_count %></span></span>
<% end -%>
Expand Down

0 comments on commit 8dc4e1a

Please sign in to comment.