Skip to content

Commit

Permalink
fix margin here
Browse files Browse the repository at this point in the history
  • Loading branch information
johrstrom committed Jan 18, 2024
1 parent 4447463 commit 61a4b66
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions apps/dashboard/app/views/layouts/application.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
<body>
<header>
<nav class="navbar navbar-expand-md shadow-sm navbar-color navbar-<%= @user_configuration.navbar_type %>">
<ul class="navbar-nav w-100" role="menubar">
<ul class="navbar-nav w-100 align-items-center" role="menubar">
<%= render partial: 'layouts/nav/logo' %>

<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
Expand All @@ -45,16 +45,17 @@
<%= render partial: 'layouts/nav/custom_navigation', locals: { navigation: @nav_bar }%>
<% end %>

<div class="ml-auto d-flex">
<% if @help_bar.empty? %>
<%= render partial: 'layouts/nav/develop_dropdown' %>
<%= render partial: 'layouts/nav/help_dropdown' %>
<%= render partial: 'layouts/nav/user' %>
<%= render partial: 'layouts/nav/log_out' %>
<% else %>
<%= render partial: 'layouts/nav/custom_navigation', locals: { navigation: @help_bar, menu_alignment: 'dropdown-menu-right' }%>
<% end %>
</div>
<!-- add some space between nav_bar and help_menu -->
<div class="ml-auto"></div>

<% if @help_bar.empty? %>
<%= render partial: 'layouts/nav/develop_dropdown' %>
<%= render partial: 'layouts/nav/help_dropdown' %>
<%= render partial: 'layouts/nav/user' %>
<%= render partial: 'layouts/nav/log_out' %>
<% else %>
<%= render partial: 'layouts/nav/custom_navigation', locals: { navigation: @help_bar, menu_alignment: 'dropdown-menu-right' }%>
<% end %>
</div>
</ul>
</nav>
Expand Down

0 comments on commit 61a4b66

Please sign in to comment.