Skip to content
Snippets Groups Projects
Commit ff6fe9af authored by Tobias Mieves's avatar Tobias Mieves :sparkles:
Browse files

fix: Layout was longer than the page with navbar

parent ce304b66
No related branches found
No related tags found
3 merge requests!18Change Layout of the base template,!16Develop,!15Bugfix/fix layout
Pipeline #188088 passed with warnings
......@@ -10,7 +10,7 @@
{% block head %}{% endblock %}
</head>
<body>
<div class="navbar mb-2 shadow-lg bg-neutral text-neutral-content rounded-box">
<div class="navbar mb-2 shadow-lg bg-neutral text-neutral-content rounded-box max-h-20">
<div class="flex-none lg:hidden">
<label for="my-drawer-3" class="btn btn-square btn-ghost">
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24"
......@@ -21,7 +21,7 @@
</label>
</div>
<div class="flex-1 px-2 mx-2 navbar-start">
<a href="{% url 'home_view' %}" class="text-lg font-bold">
<a href="{% url 'home_view' %}" class="text-lg font-bold align-middle">
{% block home_logo %}DaisyUI{% endblock %}
</a>
</div>
......@@ -53,23 +53,22 @@
</div>
</div>
</div>
<div class="drawer drawer-mobile">
<div class="drawer drawer-mobile pt-20" style="margin-top:-5rem;">
<input id="my-drawer-3" type="checkbox" class="drawer-toggle"/>
<div class="drawer-content flex flex-col">
<!-- Navbar -->
<!-- Page content here -->
<main>
<div class="p-4 lg:pl-0">
<div class="p-4">
{% block content %}
{% endblock %}
</div>
</main>
</div>
<div class="drawer-side sm:shadow-lg sm:rounded-box m-4">
<div class="drawer-side shadow-lg rounded-box lg:ml-4">
<label for="my-drawer-3" class="drawer-overlay"></label>
<ul class="menu p-4 w-fit m-w-xs bg-base-100">
<!-- Sidebar content here -->
<ul class="menu p-4 w-fit m-w-xs mb-20 lg:mb-0 bg-base-100">
{% block sidebar_list %}
<li><a>Sidebar Item 1</a></li>
<li><a>Sidebar Item 2</a></li>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment