Skip to content

Commit

Permalink
Reorder nav items for mobile and hide org name (#1284)
Browse files Browse the repository at this point in the history
  • Loading branch information
caitlynl22 authored Dec 19, 2024
1 parent 140adf0 commit 51f7a1e
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions app/views/layouts/shared/_navbar.html.erb
Original file line number Diff line number Diff line change
@@ -1,15 +1,5 @@
<nav class="navbar navbar-expand-lg bg-transparent shadow-none px-0 py-3">
<div class="container-fluid px-4">
<div class="d-flex gap-2">
<% if Current.organization.avatar.attached? %>
<%= image_tag Current.organization.avatar, alt: current_organization_name, title: current_organization_name, height: 30 %>
<% end %>

<%= link_to home_index_path, class: 'navbar-brand fw-bold text-black' do %>
<%= Current.organization.name %>
<% end %>
</div>

<div class="d-flex align-items-center order-lg-3">
<div>
<button class="navbar-toggler collapsed me-1" type="button" data-bs-toggle="collapse" data-bs-target="#navbar-default3" aria-controls="navbar-default3" aria-expanded="false" aria-label="Toggle navigation">
Expand All @@ -30,6 +20,16 @@
<% end %>
</div>

<div class="d-flex gap-2">
<% if Current.organization.avatar.attached? %>
<%= image_tag Current.organization.avatar, alt: current_organization_name, title: current_organization_name, height: 30 %>
<% end %>

<%= link_to home_index_path, class: 'navbar-brand fw-bold text-black d-none d-sm-block' do %>
<%= Current.organization.name %>
<% end %>
</div>

<!-- Collapse -->
<div class="justify-content-end collapse navbar-collapse" id="navbar-default3">
<ul class="navbar-nav">
Expand Down

0 comments on commit 51f7a1e

Please sign in to comment.