chore: moved language button to sceneries table top bar

This commit is contained in:
2025-11-27 21:31:03 +01:00
parent bd25914ed4
commit 15e599fe3c
9 changed files with 54 additions and 63 deletions
+21
View File
@@ -13,6 +13,18 @@
</div>
<div class="topbar-links">
<button
class="btn--image lang-button"
@click="toggleLocales()"
data-tooltip-type="HtmlTooltip"
:data-tooltip-content="`<b>${$t('app.language-tooltip-content')}</b>`"
>
<img
:src="`/images/icon-${mainStore.currentLocale}.svg`"
alt="change language flag icon"
/>
</button>
<a
class="a-button btn--image gnr-link"
href="https://generator-td2.web.app/"
@@ -96,6 +108,10 @@ export default defineComponent({
methods: {
toggleDonationCard(value: boolean) {
this.isDonationCardOpen = value;
},
toggleLocales() {
this.mainStore.changeLocale(this.mainStore.currentLocale == 'pl' ? 'en' : 'pl');
}
}
});
@@ -149,6 +165,11 @@ button.donation-button {
}
}
button.lang-button {
padding: 0 0.5em;
background-color: #111;
}
a.pojazdownik-link {
background-color: #1f263b;