Skip to content

Commit

Permalink
Add Kurdish to rtl languages list & add li items to be right-aligned …
Browse files Browse the repository at this point in the history
…on rtl languages
  • Loading branch information
kommunarr committed Aug 29, 2023
1 parent 5325cc2 commit 251cde5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/renderer/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,7 @@ export default defineComponent({
setLocale: function() {
document.documentElement.setAttribute('lang', this.locale)
const locale = this.$store.getters.getCurrentLocale
if (locale === 'ar' || locale === 'fa' || locale === 'he' || locale === 'ur' || locale === 'yi') {
if (locale === 'ar' || locale === 'fa' || locale === 'he' || locale === 'ur' || locale === 'yi' || locale === 'ku') {
document.body.dir = 'rtl'
} else {
document.body.dir = 'ltr'
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/components/top-nav/top-nav.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export default defineComponent({

isDirectionLtr: function() {
const locale = this.currentLocale
return !(locale === 'ar' || locale === 'fa' || locale === 'he' || locale === 'ur' || locale === 'yi')
return !(locale === 'ar' || locale === 'fa' || locale === 'he' || locale === 'ur' || locale === 'yi' || locale === 'ku')
},

backendFallback: function () {
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/themes.css
Original file line number Diff line number Diff line change
Expand Up @@ -925,7 +925,7 @@ body {
--red-500: #f44336;
}

body p, body a, body h2, body h3 {
body p, body a, body h2, body h3, body li {
text-align: start;
}

Expand Down

0 comments on commit 251cde5

Please sign in to comment.