Skip to content

Commit

Permalink
Lint files
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexVelezLl committed Apr 3, 2024
1 parent 093a4d2 commit 5cd4b30
Showing 1 changed file with 14 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
class="globe px-8"
@click="showLanguageModal = true"
/>
<span class="selected no-shrink px-8" :title="selectedLanguage.english_name">
<span class="no-shrink px-8 selected" :title="selectedLanguage.english_name">
{{ selectedLanguage.lang_name }}
</span>
<KListWithOverflow
Expand Down Expand Up @@ -89,24 +89,19 @@
selectedLanguage() {
return availableLanguages[currentLanguage];
},
numSelectableLanguages() {
return this.selectableLanguages.length;
},
buttonLanguages() {
return this.selectableLanguages
.slice()
.sort((a, b) => {
const aPriority = prioritizedLanguages.includes(a.id);
const bPriority = prioritizedLanguages.includes(b.id);
if (aPriority && bPriority) {
return compareLanguages(a, b);
} else if (aPriority && !bPriority) {
return -1;
} else if (!aPriority && bPriority) {
return 1;
}
return this.selectableLanguages.slice().sort((a, b) => {
const aPriority = prioritizedLanguages.includes(a.id);
const bPriority = prioritizedLanguages.includes(b.id);
if (aPriority && bPriority) {
return compareLanguages(a, b);
})
} else if (aPriority && !bPriority) {
return -1;
} else if (!aPriority && bPriority) {
return 1;
}
return compareLanguages(a, b);
});
},
},
$trs: {
Expand Down Expand Up @@ -142,20 +137,20 @@
}
.languages-list {
margin-top: 8px;
position: relative;
left: -16px;
display: flex;
align-items: center;
margin-top: 8px;
}
.no-shrink {
flex-shrink: 0;
}
.px-8 {
padding-left: 8px;
padding-right: 8px;
padding-left: 8px;
}
</style>

0 comments on commit 5cd4b30

Please # to comment.