@@ -38,12 +38,13 @@ export const useAppStateStore = defineStore('app.state', () => {
38
38
39
39
const { navbarPosition } = useExtensionSettingsStoreRefs ( ) ;
40
40
41
- const { mobile , tablet } = watchBreakpoint (
41
+ const { bottom , minimum , floating } = watchBreakpoint (
42
42
appRef ,
43
- { mobile : 600 , tablet : 1300 } ,
43
+ { bottom : 400 , minimum : 800 , floating : 1000 } ,
44
44
{
45
- mobile : { width : window . innerWidth < 600 } ,
46
- tablet : { width : window . innerWidth < 1300 } ,
45
+ bottom : { width : window . innerWidth < 400 } ,
46
+ minimum : { width : window . innerWidth < 800 } ,
47
+ floating : { width : window . innerWidth < 1000 } ,
47
48
} ,
48
49
) ;
49
50
@@ -65,14 +66,15 @@ export const useAppStateStore = defineStore('app.state', () => {
65
66
if ( navbarPosition . value === NavbarPosition . Bottom ) return true ;
66
67
if ( ! isWeb . value ) return false ;
67
68
// web and small screen only
68
- return navbarPosition . value === NavbarPosition . Auto && mobile . width ;
69
+ return navbarPosition . value === NavbarPosition . Auto && bottom . width ;
69
70
} ) ,
70
71
floating : computed ( ( ) => {
72
+ if ( minimum . width ) return false ;
71
73
// if (panelOpen.value) return false;
72
74
if ( navbarPosition . value === NavbarPosition . Floating ) return true ;
73
75
if ( ! isWeb . value ) return false ;
74
76
// web & big screen only
75
- return navbarPosition . value === NavbarPosition . Auto && tablet . width === false ;
77
+ return navbarPosition . value === NavbarPosition . Auto && floating . width === false ;
76
78
} ) ,
77
79
} ;
78
80
} ) ;
0 commit comments