Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Vertically Align Navbar Items with Brand Name #12

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 10 additions & 9 deletions templates/header.html
Original file line number Diff line number Diff line change
@@ -1,29 +1,30 @@
<nav class="navbar navbar-expand-lg navbar-dark bg-dark">
<div class="container">
<nav class="navbar navbar-expand-lg navbar-dark bg-dark" style="display: flex; align-items: center;">
<div class="container" style="flex-grow: 1; display: flex; justify-content: space-between; align-items: center;">
<button class="navbar-toggler"
type="button"
data-bs-toggle="collapse"
data-bs-target="#navbarNav"
aria-controls="navbarNav"
aria-expanded="false"
aria-label="Toggle navigation">
aria-label="Toggle navigation"
style="border: none; background: none;">
<i class="fas fa-bars"></i>
</button>
<a class="navbar-brand" href="{% url 'home' %}">
<a class="navbar-brand" href="{% url 'home' %}" style="margin-right: auto;">
<span class="emphasized-name">{{ PRODUCT_NAME }}</span>: Bug Tracker
</a>
<button class="btn btn-light ml-auto order-md-1" id="darkModeToggle">
<button class="btn btn-light ml-auto order-md-1" id="darkModeToggle" style="margin-left: auto;">
<i id="themeIcon" class="fas fa-moon"></i>
</button>
<div class="collapse navbar-collapse" id="navbarNav">
<div class="collapse navbar-collapse" id="navbarNav" style="flex-basis: auto;">
<ul class="navbar-nav ml-auto order-md-2">
<li class="nav-item">
<a class="nav-link text-white" href="{% url 'home' %}">Home</a>
<a class="nav-link text-white" href="{% url 'home' %}" style="white-space: nowrap;">Home</a>
</li>
<li class="nav-item">
<a class="nav-link text-white" href="{% url 'bug_hub:bug_list' %}">Bugs</a>
<a class="nav-link text-white" href="{% url 'bug_hub:bug_list' %}" style="white-space: nowrap;">Bugs</a>
</li>
</ul>
</div>
</div>
</nav>
</nav>
Loading