Skip to content

Commit 45b3ed4

Browse files
authored
Merge pull request #87 from TryCli-Studio/feat/mobile-nav-improvements
minor changes
2 parents 8513e0e + aad3345 commit 45b3ed4

3 files changed

Lines changed: 16 additions & 4 deletions

File tree

client/src/pages/blogs.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ pub fn BlogsPage() -> impl IntoView {
2929
});
3030

3131
view! {
32-
<div style="min-height: 100vh; background: var(--bg-dark); display: flex; flex-direction: column;">
32+
<div style="min-height: 100vh; background: var(--bg-dark); display: flex; flex-direction: column; overflow-x: hidden;">
3333
<Navbar>
3434
<div class="nav-actions">
3535
// User Profile Picture
@@ -74,7 +74,7 @@ pub fn BlogsPage() -> impl IntoView {
7474
</div>
7575
</Navbar>
7676

77-
<main style="flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 2rem; text-align: center;">
77+
<main style="flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 2rem; text-align: center; overflow-x: hidden;">
7878
<div class="badge">"Under Construction"</div>
7979

8080
<h1 class="hero-title" style="font-size: 3.5rem; margin-bottom: 1.5rem; line-height: 1.1;">

client/styles/02-navigation.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,10 +136,14 @@
136136
transition: right 0.3s ease-in-out;
137137
max-height: calc(100vh - 60px);
138138
overflow-y: auto;
139+
visibility: hidden;
140+
pointer-events: none;
139141
}
140142

141143
.mobile-menu.open {
142144
right: 0;
145+
visibility: visible;
146+
pointer-events: auto;
143147
}
144148

145149
.mobile-menu .menu-item {

client/styles/08-footer-docs.css

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@
137137
position: fixed;
138138
bottom: 20px;
139139
right: 20px;
140-
z-index: 90;
140+
z-index: 1100;
141141
background: var(--bg-panel);
142142
border: 1px solid var(--border);
143143
border-radius: 50px;
@@ -152,6 +152,7 @@
152152
gap: 8px;
153153
}
154154

155+
155156
.docs-sidebar-toggle:hover {
156157
background: rgba(255, 255, 255, 0.1);
157158
transform: translateY(-2px);
@@ -413,13 +414,20 @@
413414

414415
/* Mobile Responsive for Docs */
415416
@media (max-width: 968px) {
417+
.docs-container {
418+
overflow-x: hidden;
419+
}
420+
416421
.docs-layout {
417422
flex-direction: column;
423+
overflow-x: hidden;
418424
}
419425

420426
/* Show toggle button on mobile */
421427
.docs-sidebar-toggle {
422-
display: flex;
428+
display: flex !important;
429+
visibility: visible;
430+
opacity: 1;
423431
}
424432

425433
/* Hide sidebar by default on mobile */

0 commit comments

Comments
 (0)