refactor: improve mobile layout, sticky footer, and UI spacing
This commit is contained in:
@@ -17,20 +17,42 @@ defineProps({
|
||||
|
||||
<style scoped>
|
||||
.sidebar {
|
||||
width: 0;
|
||||
/* Mobile First Styles */
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
bottom: 0;
|
||||
width: 250px;
|
||||
background-color: var(--panel-bg);
|
||||
backdrop-filter: blur(12px);
|
||||
-webkit-backdrop-filter: blur(12px);
|
||||
overflow-x: hidden;
|
||||
transition: width 0.3s ease;
|
||||
transition: transform 0.3s ease;
|
||||
border-right: 1px solid var(--panel-border);
|
||||
flex-shrink: 0;
|
||||
height: 100%;
|
||||
z-index: 1000;
|
||||
box-shadow: var(--panel-shadow);
|
||||
transform: translateX(-100%);
|
||||
}
|
||||
|
||||
.sidebar.is-open {
|
||||
width: 250px;
|
||||
transform: translateX(0);
|
||||
}
|
||||
|
||||
@media (min-width: 768px) {
|
||||
.sidebar {
|
||||
position: static;
|
||||
transform: none;
|
||||
width: 0;
|
||||
height: auto;
|
||||
transition: width 0.3s ease;
|
||||
z-index: auto;
|
||||
box-shadow: none; /* Shadow handled by panel logic or not needed inline */
|
||||
}
|
||||
|
||||
.sidebar.is-open {
|
||||
width: 250px;
|
||||
transform: none;
|
||||
}
|
||||
}
|
||||
|
||||
.sidebar-nav {
|
||||
@@ -38,11 +60,19 @@ defineProps({
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
width: 250px; /* Fixed width for content */
|
||||
min-width: 250px;
|
||||
padding-top: 1rem; /* Add some top padding for mobile aesthetic */
|
||||
}
|
||||
|
||||
@media (min-width: 768px) {
|
||||
.sidebar-nav {
|
||||
padding-top: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.nav-item {
|
||||
display: block;
|
||||
padding: 0.5rem;
|
||||
padding: 0.75rem 1rem;
|
||||
color: var(--text-secondary);
|
||||
text-decoration: none;
|
||||
transition: background-color 0.2s, color 0.2s;
|
||||
|
||||
Reference in New Issue
Block a user