We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d7f7808 commit 06d3b63Copy full SHA for 06d3b63
frontend/src/components/navbar/MenuItems.vue
@@ -192,16 +192,15 @@
192
193
const initMenuItems = () => {
194
// const menuWidth = document.querySelector('#pc-menu')?.offsetWidth
195
- const menuLength = rawNavItems.length - 1
196
197
if (768 < window.innerWidth && window.innerWidth <= 1024) {
198
allNavItems.value = rawNavItems.slice(0, 3)
199
- moreItems.value = rawNavItems.slice(3, menuLength)
+ moreItems.value = rawNavItems.slice(3)
200
}
201
202
if (1024 < window.innerWidth && window.innerWidth <= 1280) {
203
allNavItems.value = rawNavItems.slice(0, 5)
204
- moreItems.value = rawNavItems.slice(5, menuLength)
+ moreItems.value = rawNavItems.slice(5)
205
206
207
if (window.innerWidth > 1280) {
0 commit comments