mirror of
https://github.com/elk-zone/elk
synced 2024-11-27 22:38:11 +09:00
fix: default main content dir to ltr (#1710)
Co-authored-by: moshyfawn <oleg.butorov.98@gmail.com>
This commit is contained in:
parent
c5fe184281
commit
a9427e2ea0
@ -8,14 +8,14 @@ export function setupPageHeader() {
|
|||||||
const enablePinchToZoom = usePreferences('enablePinchToZoom')
|
const enablePinchToZoom = usePreferences('enablePinchToZoom')
|
||||||
|
|
||||||
const localeMap = (locales.value as LocaleObject[]).reduce((acc, l) => {
|
const localeMap = (locales.value as LocaleObject[]).reduce((acc, l) => {
|
||||||
acc[l.code!] = l.dir ?? 'auto'
|
acc[l.code!] = l.dir ?? 'ltr'
|
||||||
return acc
|
return acc
|
||||||
}, {} as Record<string, Directions>)
|
}, {} as Record<string, Directions>)
|
||||||
|
|
||||||
useHeadFixed({
|
useHeadFixed({
|
||||||
htmlAttrs: {
|
htmlAttrs: {
|
||||||
lang: () => locale.value,
|
lang: () => locale.value,
|
||||||
dir: () => localeMap[locale.value] ?? 'auto',
|
dir: () => localeMap[locale.value] ?? 'ltr',
|
||||||
class: () => enablePinchToZoom.value ? ['enable-pinch-to-zoom'] : [],
|
class: () => enablePinchToZoom.value ? ['enable-pinch-to-zoom'] : [],
|
||||||
},
|
},
|
||||||
meta: [{
|
meta: [{
|
||||||
|
Loading…
Reference in New Issue
Block a user