File tree 1 file changed +20
-3
lines changed
src/components/common/navbar
1 file changed +20
-3
lines changed Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ const navigate = (to: Route) => {
54
54
55
55
const { enabledRoutes, iconOnly } = useExtensionSettingsStoreRefs ();
56
56
57
- const isCompact = watchMedia (' (max-width: 500px )' );
57
+ const isCompact = watchMedia (' (max-width: 550px )' );
58
58
const isTiny = watchMedia (' (max-width: 400px)' );
59
59
const threshold = computed (() => {
60
60
if (iconOnly .value ) return 6 ;
@@ -224,7 +224,12 @@ const onTouchEnd = (e: TouchEvent) => {
224
224
<NFlex
225
225
align =" center"
226
226
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"
228
233
>
229
234
<NIcon :component =" getRouteIcon(_route)" size =" 1em" />
230
235
<span class =" text" >
@@ -333,7 +338,19 @@ nav {
333
338
}
334
339
335
340
& .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 ) {
337
354
& :not (.icon ) i {
338
355
display : none ;
339
356
}
You can’t perform that action at this time.
0 commit comments