Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
Django Core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Tobias Mieves
Django Core
Commits
ff6fe9af
Commit
ff6fe9af
authored
1 year ago
by
Tobias Mieves
Browse files
Options
Downloads
Patches
Plain Diff
fix: Layout was longer than the page with navbar
parent
ce304b66
No related branches found
Branches containing commit
No related tags found
Tags containing commit
3 merge requests
!18
Change Layout of the base template
,
!16
Develop
,
!15
Bugfix/fix layout
Pipeline
#188088
passed with warnings
1 year ago
Stage: test
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
templates/base.html
+6
-7
6 additions, 7 deletions
templates/base.html
with
6 additions
and
7 deletions
templates/base.html
+
6
−
7
View file @
ff6fe9af
...
...
@@ -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>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment