🌐 AI搜索 & 代理 主页
Skip to content

Commit 4bcb252

Browse files
committed
fixed left nav
1 parent 8122f77 commit 4bcb252

File tree

3 files changed

+18
-4
lines changed

3 files changed

+18
-4
lines changed

pgml-dashboard/src/components/navigation/left_nav/web_app/web_app.scss

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
.leftnav-container {
2-
position: sticky;
2+
position: fixed;
33
top: $navbar-height;
44
height: calc( 100vh - $navbar-height );
55
background-color: var(--webapp-nav-bg);
66
border-right: 1px solid #{$gray-500};
77
max-width: $left-nav-w;
88
padding-top: 0px;
99
z-index: $zindex-fixed;
10+
box-shadow: 4px 0px 4px 0px rgba(0, 0, 0, 0.30);
1011

1112
@include media-breakpoint-down(lg) {
1213
display: none;
@@ -16,6 +17,7 @@
1617
.leftnav {
1718
@extend .navbar;
1819
max-width: 260px;
20+
min-width: $left-nav-w-collapsed;
1921

2022
border: none;
2123
align-items: start;
@@ -93,3 +95,9 @@ div[data-controller="navigation-left-nav-web-app"] {
9395
margin-right: 0px;
9496
}
9597
}
98+
99+
.menu-item {
100+
button, a {
101+
padding: 8px 24px 8px 12px;
102+
}
103+
}

pgml-dashboard/static/css/scss/layout/_containers.scss

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,8 +157,14 @@
157157
}
158158
}
159159

160-
.docs-content-max-width-container {
160+
.docs-content-max-width-container {
161161
max-width: $docs-content-max-width;
162162

163163
margin: 0px auto;
164-
}
164+
}
165+
166+
.web-app-content-area {
167+
@include media-breakpoint-up(lg) {
168+
margin-left: $left-nav-w-collapsed
169+
}
170+
}

pgml-dashboard/templates/layout/web_app_base.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
<div class="d-flex">
3030
<%+ WebAppLeftNav::new( upper_left_nav.clone(), lower_left_nav, dropdown_nav ).id(&upper_left_nav.unique_id()) %>
3131

32-
<div class="clear-from-under-navbar flex-grow-1 min-vw-0">
32+
<div class="clear-from-under-navbar flex-grow-1 min-vw-0 web-app-content-area">
3333
<div class="px-4 px-sm-5 py-3" style="position: absolute">
3434
<%- Breadcrumbs::render( breadcrumbs ) %>
3535
</div>

0 commit comments

Comments
 (0)