Skip to content

Commit

Permalink
Merge pull request #287 from TheDesignExchange/fix/navbar/#279
Browse files Browse the repository at this point in the history
mobile compatible
  • Loading branch information
jschnapper authored Nov 28, 2018
2 parents 49ccccc + 24f9c5e commit e17b966
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion app/views/layouts/_newestheader.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,23 @@
#sign-in-btn {
display: none;
}


/* for the dropdown */
.navbar-nav .open .dropdown-menu.tdx {
position: static;
float: none;
width: auto;
margin-top: 0;
background-color: transparent;
border: 0;
box-shadow: none;
}

.navbar-nav .open .dropdown-menu.tdx li a {
line-height: 20px;
padding: 5px 15px 5px 25px;
}
}


Expand Down Expand Up @@ -280,7 +297,7 @@
%a.dropdown-toggle{"data-toggle" => "dropdown", :href => "#"}
= current_user.email
%b.caret
%ul.dropdown-menu
%ul.dropdown-menu.tdx
- if current_user.admin?
%li= link_to "Admin", administrator_path
%li= link_to "Profile", user_path(current_user.id)
Expand Down

0 comments on commit e17b966

Please sign in to comment.