Skip to content

Commit

Permalink
Fixed bug with overflowing header icons
Browse files Browse the repository at this point in the history
  • Loading branch information
tomik-z-cech committed Feb 28, 2024
1 parent 618624a commit caa5de1
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 8 deletions.
9 changes: 7 additions & 2 deletions static/css/header.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,13 @@ header {
border-bottom: 2px solid var(--dark-background);
}

.header-height {
height: 12vh;
}

#logo-image {
height: 60%;
height: 90%;
aspect-ratio: 3/1;
}

.dropdown {
Expand Down Expand Up @@ -70,7 +75,7 @@ header {
}

#logo-image {
width: 40%;
height: 40%;
}

.header-link {
Expand Down
12 changes: 6 additions & 6 deletions templates/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,18 @@

<header class="container-fluid w-100" id="header">
<div class="row">
<div class="col-12 col-lg-4">
<div class="col-12 col-lg-3 header-height">
<a href="{% url 'home' %}" aria-label="Home" id="logo-container" class="w-100">
<img src="{% static 'images/logo.png' %}" alt="Logo Ohm-Azing Components" id="logo-image" class="image-fluid">
</a>
</div>
<div class="col-12 col-lg-5">
<div class="col-12 col-lg-6 header-height">
Search
</div>
<div class="col-4 col-lg-1 d-flex justify-content-center">
<div class="col-4 col-lg-1 d-flex justify-content-center header-height">
{% if user.is_authenticated %}
<nav class="navbar">
<a class="nav-link header-link text-center" href="#" id="navbarDropdown" role="button" data-bs-toggle="dropdown" aria-expanded="false" aria-label="Menu">
<a class="nav-link header-link text-center" href="#" aria-label="Wishlist">
<i class="bi bi-star"></i>
<br>
<span class="hide-less-991px">
Expand All @@ -32,7 +32,7 @@
</nav>
{% endif %}
</div>
<div class="col-4 col-lg-1 text-center">
<div class="col-4 col-lg-1 text-center header-height">
{% if vault_items|length > 0 %}
Neco tam je
{% else %}
Expand All @@ -47,7 +47,7 @@
</nav>
{% endif %}
</div>
<div class="col-4 col-lg-1 d-flex justify-content-center">
<div class="col-4 col-lg-1 d-flex justify-content-center header-height">
<nav class="navbar navbar-expand d-flex justify-content-center">
<div class="collapse navbar-collapse text-center" id="navbarSupportedContent">
<a class="nav-link header-link" href="#" id="navbarDropdown" role="button" data-bs-toggle="dropdown" aria-expanded="false" aria-label="Menu">
Expand Down

0 comments on commit caa5de1

Please sign in to comment.