mirror of
https://github.com/fastapi-admin/fastapi-admin.git
synced 2025-08-26 02:39:01 +08:00
fix: Relocate navbar-toggler button in layout template
The navigation bar 'navbar-toggler' button has been shifted in the layout.html file. Previously, it was located inside the 'navbar navbar-expand-md navbar-light' div, but now it resides just above the 'collapse navbar-collapse' div. This modification enhances the positioning and visibility of the button, potentially improving the user interface.
This commit is contained in:
@ -15,6 +15,12 @@
|
||||
</a>
|
||||
</h1>
|
||||
{% endif %}
|
||||
<button
|
||||
class="navbar-toggler"
|
||||
type="button"
|
||||
data-bs-toggle="collapse"
|
||||
data-bs-target="#navbar-menu"
|
||||
>
|
||||
<div class="collapse navbar-collapse" id="navbar-menu">
|
||||
<ul class="navbar-nav pt-lg-3">
|
||||
{% for resource in resources %} {% if resource.type == 'link' %}
|
||||
@ -30,12 +36,6 @@
|
||||
class="navbar navbar-expand-md navbar-light d-none d-lg-flex d-print-none"
|
||||
>
|
||||
<div class="container-fluid">
|
||||
<button
|
||||
class="navbar-toggler"
|
||||
type="button"
|
||||
data-bs-toggle="collapse"
|
||||
data-bs-target="#navbar-menu"
|
||||
>
|
||||
<span class="navbar-toggler-icon"></span>
|
||||
</button>
|
||||
<div class="navbar-nav flex-row order-md-last">
|
||||
|
Reference in New Issue
Block a user