mirror of
https://github.com/romancm/gamebrary
synced 2024-11-24 12:13:08 +00:00
Change text direction if arabic is selected
This commit is contained in:
parent
222b786818
commit
ad548d2361
1 changed files with 7 additions and 0 deletions
|
@ -3,6 +3,7 @@
|
||||||
id="app"
|
id="app"
|
||||||
:class="{ dark: darkModeEnabled }"
|
:class="{ dark: darkModeEnabled }"
|
||||||
:style="style"
|
:style="style"
|
||||||
|
:dir="dir"
|
||||||
>
|
>
|
||||||
<nav-header />
|
<nav-header />
|
||||||
|
|
||||||
|
@ -52,6 +53,12 @@ export default {
|
||||||
...mapState(['user', 'platform', 'wallpaperUrl', 'settings']),
|
...mapState(['user', 'platform', 'wallpaperUrl', 'settings']),
|
||||||
...mapGetters(['darkModeEnabled']),
|
...mapGetters(['darkModeEnabled']),
|
||||||
|
|
||||||
|
dir() {
|
||||||
|
return this.settings && this.settings.language === 'ar'
|
||||||
|
? 'rtl'
|
||||||
|
: 'ltr';
|
||||||
|
},
|
||||||
|
|
||||||
isPublic() {
|
isPublic() {
|
||||||
return this.$route.name === 'share-list';
|
return this.$route.name === 'share-list';
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue