Skip to content

Commit bec98d6

Browse files
committed
fix(navbar): adjust responsive breakpoints
1 parent 5068d12 commit bec98d6

File tree

1 file changed

+20
-3
lines changed

1 file changed

+20
-3
lines changed

src/components/common/navbar/NavbarComponent.vue

+20-3
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ const navigate = (to: Route) => {
5454
5555
const { enabledRoutes, iconOnly } = useExtensionSettingsStoreRefs();
5656
57-
const isCompact = watchMedia('(max-width: 500px)');
57+
const isCompact = watchMedia('(max-width: 550px)');
5858
const isTiny = watchMedia('(max-width: 400px)');
5959
const threshold = computed(() => {
6060
if (iconOnly.value) return 6;
@@ -224,7 +224,12 @@ const onTouchEnd = (e: TouchEvent) => {
224224
<NFlex
225225
align="center"
226226
class="tab-label"
227-
:class="{ icon: iconOnly, overflow: enabledRoutes.length > 4 }"
227+
:class="{
228+
icon: iconOnly,
229+
wide: enabledRoutes.length === 5,
230+
overflow: enabledRoutes.length > 5,
231+
}"
232+
:data-count="enabledRoutes.length"
228233
>
229234
<NIcon :component="getRouteIcon(_route)" size="1em" />
230235
<span class="text">
@@ -333,7 +338,19 @@ nav {
333338
}
334339
335340
&.overflow {
336-
@media (width < 700px) {
341+
@media (width < 750px) {
342+
&:not(.icon) i {
343+
display: none;
344+
}
345+
346+
&.icon .text {
347+
display: none;
348+
}
349+
}
350+
}
351+
352+
&.wide {
353+
@media (width < 650px) {
337354
&:not(.icon) i {
338355
display: none;
339356
}

0 commit comments

Comments
 (0)