Skip to content

Commit

Permalink
center tag buttons in sidebar (#7687)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tlazypanda authored and icarito committed Mar 31, 2020
1 parent 8744fca commit 034b534
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
5 changes: 3 additions & 2 deletions app/assets/stylesheets/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,8 @@ h5,h6, h1 small, h3 small {
height: 25px;
width: 25px;
margin: 13px 5px;
padding: 5px 3px 0px 1px;
display: flex;
justify-content: center;
font-size: 11px;
}

Expand Down Expand Up @@ -611,7 +612,7 @@ textarea, input {
background: rgba(255,255,255,0.8);
z-index: 700;
border-radius: 4px;
padding: 10px;
padding: 10px;
}

.btn-toolbar .btn-outline-secondary
Expand Down
6 changes: 3 additions & 3 deletions app/views/tag/_tagging.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<%= render partial: 'tag/replication' %>
<!-- This is the sidebar tagging display, also renders Subscribe button for multiple subscription -->
<p style="font-size:0.9em;color:#666;margin-top:5px;">
<% if @node.normal_tags.count > 0 %>
<% if @node.normal_tags.count > 0 %>
This is part of:
<% end %>
</p>
Expand Down Expand Up @@ -47,9 +47,9 @@ $(function () {
<% if current_user && (parent != :profile || (current_user.id == user.id || logged_in_as(['admin']))) %>
<a id="tags-open" class="btn btn-circle btn-circle-sm" style="float:left;"><i class="fa fa-plus" style="color:#808080;margin-left:3px;"></i></a>
<a id="tags-open" class="btn btn-circle btn-circle-sm" style="float:left;"><i class="fa fa-plus" style="color:#808080;"></i></a>
<% if @node && @node.tags.count == 0 %>
<span style="float:left;color:#666;margin-top:14px;margin-left:5px;">Add tags</a>
<span style="float:left;color:#666;margin-top:14px;margin-left:5px;">Add tags</a>
<% end %>
<%= render partial: 'tag/form', locals: { node: @node ||= nil, user: user ||= nil, url: url ||= nil } %>
Expand Down
2 changes: 1 addition & 1 deletion app/views/tag/_tags.html.erb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<% user = user || @user # allow overriding w/ local variable %>
<div class="tags-list">
<% if tags.length > 0 && power_tag %>
<a class="btn btn-circle btn-circle-sm show-more-tags" href="javascript:void(0);" style="float:left;"><i class="fa fa-ellipsis-h" style="color:#808080;margin-left:3px;"></i></a>
<a class="btn btn-circle btn-circle-sm show-more-tags" href="javascript:void(0);" style="float:left;"><i class="fa fa-ellipsis-h" style="color:#808080;"></i></a>
<% end %>
<% tags.each_with_index do |tag, i| %>
<% if tag.class == NodeTag %>
Expand Down

0 comments on commit 034b534

Please sign in to comment.