Skip to content

Commit

Permalink
fix: default main content dir to ltr (#1710)
Browse files Browse the repository at this point in the history
Co-authored-by: moshyfawn <[email protected]>
  • Loading branch information
Moshyfawn and moshyfawn authored Feb 11, 2023
1 parent c5fe184 commit a9427e2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions composables/setups.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ export function setupPageHeader() {
const enablePinchToZoom = usePreferences('enablePinchToZoom')

const localeMap = (locales.value as LocaleObject[]).reduce((acc, l) => {
acc[l.code!] = l.dir ?? 'auto'
acc[l.code!] = l.dir ?? 'ltr'
return acc
}, {} as Record<string, Directions>)

useHeadFixed({
htmlAttrs: {
lang: () => locale.value,
dir: () => localeMap[locale.value] ?? 'auto',
dir: () => localeMap[locale.value] ?? 'ltr',
class: () => enablePinchToZoom.value ? ['enable-pinch-to-zoom'] : [],
},
meta: [{
Expand Down

0 comments on commit a9427e2

Please sign in to comment.