Skip to content

Commit a8c8960

Browse files
committed
fix: conditionally render separator for active menu path
1 parent 3168f14 commit a8c8960

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/layouts/default.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ q-layout(view="hHh LpR lff" style="margin-top: -1px;")
1515
:key="part" clickable v-ripple
1616
:to="menu.path" :active="menu.path === $route.fullPath" active-class="q-item--active"
1717
)
18-
q-separator(vertical color='primary' size="5px" style='position: absolute; left: 0; height: 100%; margin-top: -8px;')
18+
q-separator(v-if='menu.path === $route.fullPath' vertical color='primary' size="5px" style='position: absolute; left: 0; height: 100%; margin-top: -8px;')
1919
q-item-section(avatar)
2020
q-icon(:name="menu.icon" :color="menu.color")
2121
q-badge(v-if="menu.badge" :color="menu.badge.color" floating) {{ menu.badge.value }}

0 commit comments

Comments
 (0)