mirror of
https://github.com/haexhub/haex-hub.git
synced 2025-12-17 22:40:51 +01:00
adjust for mobile
This commit is contained in:
@ -1,4 +1,5 @@
|
||||
//import { breakpointsTailwind, useBreakpoints } from '@vueuse/core'
|
||||
import { breakpointsTailwind } from '@vueuse/core'
|
||||
import de from './de.json'
|
||||
import en from './en.json'
|
||||
|
||||
@ -15,6 +16,11 @@ export const useUiStore = defineStore('uiStore', () => {
|
||||
breakpoints.active().value.length > 0 ? breakpoints.active().value : 'xs',
|
||||
) */
|
||||
|
||||
const breakpoints = useBreakpoints(breakpointsTailwind)
|
||||
|
||||
// "smAndDown" gilt für sm, xs usw.
|
||||
const isSmallScreen = breakpoints.smaller('sm')
|
||||
|
||||
const { $i18n } = useNuxtApp()
|
||||
|
||||
$i18n.setLocaleMessage('de', {
|
||||
@ -70,5 +76,6 @@ export const useUiStore = defineStore('uiStore', () => {
|
||||
currentTheme,
|
||||
currentThemeName,
|
||||
defaultTheme,
|
||||
isSmallScreen,
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user