Skip to content

Commit

Permalink
.btn-link bootstrap class
Browse files Browse the repository at this point in the history
  • Loading branch information
nimmolo committed Mar 19, 2024
1 parent 9dae102 commit 6816c45
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions app/assets/stylesheets/mo/_top_nav.scss
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@
}
}

.li_button {
margin-left: 16px;
.dropdown-menu li button.btn-link {
padding: 3px 20px;
}

// The button_to form, not the button, needs to display: block
Expand Down
12 changes: 6 additions & 6 deletions app/views/controllers/application/sidebar/_user.html.erb
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
<%= tag.div("", class: class_names(classes[:item], classes[:mobile_only])) do
[
tag.i("", class: "glyphicon glyphicon-user"),
tag.span(h(@user.login), class: "ml-2"),
tag.span(class: "pull-left") do
button_to(:app_logout.t,
account_logout_path,
{ class: "btn", id: "nav_user_logout_link" })
end
tag.span(h(@user.login), class: "ml-2")
].safe_join
end %>
<%= button_to(:app_logout.t,
account_logout_path,
{ class: class_names("btn", "btn-link", classes[:indent],
classes[:mobile_only]),
id: "nav_user_logout_link" }) %>
<%= active_link_to(:app_comments_for_you.t,
comments_path(for_user: @user.id),
class: class_names(classes[:indent], classes[:mobile_only]),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
<li><%= button_to(
:app_logout.t,
account_logout_path,
{ class: "btn li_button", id: "user_drop_logout_link" }
{ class: "btn btn-link li_button", id: "user_drop_logout_link" }
) %><li>
</ul>
</li>
Expand Down

0 comments on commit 6816c45

Please sign in to comment.