Skip to content

Commit 87ac706

Browse files
committed
fix side-nav
1 parent e72b154 commit 87ac706

File tree

2 files changed

+14
-16
lines changed

2 files changed

+14
-16
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
"version": "0.0.0",
44
"scripts": {
55
"dev": "vite",
6-
"build": "vite build --base=/W/",
7-
"preview": "vite preview --port 4173"
6+
"build": "vite build",
7+
"preview": "vite preview --port 13280"
88
},
99
"dependencies": {
1010
"vue": "^3.2.37",

src/App.vue

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,12 @@ const navExpanded = ref(!isMobile)
2929
const navExpandedAni = ref(!isMobile)
3030
3131
const accounts = ref([
32-
{'email': 'user@example.com', 'boxes': ['Inbox', 'Sent', 'Junk', 'Trash']},
32+
{'email': 'user1@example.com', 'boxes': ['Inbox', 'Sent', 'Junk', 'Trash']},
33+
{'email': 'user2@example.com', 'boxes': ['Inbox', 'Sent', 'Junk', 'Trash']},
34+
{'email': 'user3@example.com', 'boxes': ['Inbox', 'Sent', 'Junk', 'Trash', 'Tag1']},
35+
{'email': 'user4@example.com', 'boxes': ['Inbox', 'Sent', 'Junk', 'Trash', 'Tag1', 'Tag2']},
36+
{'email': 'user5@example.com', 'boxes': ['Inbox', 'Sent', 'Junk', 'Trash', 'Tag3']},
37+
{'email': 'user6@example.com', 'boxes': ['Inbox', 'Sent', 'Junk', 'Trash', 'Tag4']},
3338
])
3439
3540
const appHeight = computed(()=>window.innerHeight)
@@ -45,7 +50,7 @@ function toggleNavExpand(){
4550
setTimeout(()=>{
4651
navExpanded.value = navExpandedAni.value;
4752
toggleNavExpanding = false;
48-
}, 350);
53+
}, 400);
4954
}
5055
5156
</script>
@@ -80,21 +85,13 @@ function toggleNavExpand(){
8085
}
8186
8287
@keyframes -side-nav-expand {
83-
from {
84-
width: 3.8rem;
85-
}
86-
to {
87-
width: 15rem;
88-
}
88+
from { width: 3.8rem; }
89+
to { width: 15rem; }
8990
}
9091
9192
@keyframes -side-nav-expand-reverse {
92-
from {
93-
width: 15rem;
94-
}
95-
to {
96-
width: 3.8rem;
97-
}
93+
from { width: 15rem; }
94+
to { width: 3.8rem; }
9895
}
9996
10097
@@ -121,6 +118,7 @@ function toggleNavExpand(){
121118
width: 100%;
122119
display: flex;
123120
flex-direction: column;
121+
overflow-y: auto;
124122
}
125123
126124
.nav-account {

0 commit comments

Comments
 (0)