mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-08 03:20:12 +08:00
fix: move translation button to rightmost
This commit is contained in:
1 parent
c9b04682c9
commit
7b16722e55
4 files changed
+6
-6
No files matched your search
@@ -103,7 +103,7 @@ onMounted(async () => {
|
|||||||
<button
|
<button
|
||||||
:title="t('game_nav.sign_out')"
|
:title="t('game_nav.sign_out')"
|
||||||
@click="handleLogout"
|
@click="handleLogout"
|
||||||
class="md:h-5 md:w-5 px-1.5 w-auto"
|
class="md:h-5 md:w-5 px-1.5 mr-2 w-auto"
|
||||||
>
|
>
|
||||||
<font-awesome-icon
|
<font-awesome-icon
|
||||||
:icon="['fas', 'arrow-right-from-bracket']"
|
:icon="['fas', 'arrow-right-from-bracket']"
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { defineProps, ref } from 'vue'
|
import { ref } from 'vue'
|
||||||
|
|
||||||
import { useI18n } from 'vue-i18n'
|
import { useI18n } from 'vue-i18n'
|
||||||
import LanguageSelector from '../LanguageSelector.vue'
|
import LanguageSelector from './LanguageSelector.vue'
|
||||||
|
|
||||||
const { t } = useI18n()
|
const { t } = useI18n()
|
||||||
|
|
||||||
@@ -27,7 +27,6 @@ const toggleMenu = () => {
|
|||||||
class="w-full top-0 px-2 fixed flex flex-row flex-wrap bg-bg-secondary justify-between items-center sm:justify-between"
|
class="w-full top-0 px-2 fixed flex flex-row flex-wrap bg-bg-secondary justify-between items-center sm:justify-between"
|
||||||
>
|
>
|
||||||
<div class="flex flex-row items-center gap-3" :class="{ hidden: menuOpen }">
|
<div class="flex flex-row items-center gap-3" :class="{ hidden: menuOpen }">
|
||||||
<LanguageSelector />
|
|
||||||
<img src="../../img/icon_totem.svg" class="h-8 justify-self-start" />
|
<img src="../../img/icon_totem.svg" class="h-8 justify-self-start" />
|
||||||
<RouterLink
|
<RouterLink
|
||||||
to="/"
|
to="/"
|
||||||
@@ -50,6 +49,7 @@ const toggleMenu = () => {
|
|||||||
:class="{ hidden: !menuOpen }"
|
:class="{ hidden: !menuOpen }"
|
||||||
>
|
>
|
||||||
<component :is="headerComponent" />
|
<component :is="headerComponent" />
|
||||||
|
<LanguageSelector />
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
v-if="windowWidth"
|
v-if="windowWidth"
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { useI18n } from 'vue-i18n'
|
import { useI18n } from 'vue-i18n'
|
||||||
import { setLocale, type SupportedLocale } from '../i18n'
|
import { setLocale, type SupportedLocale } from '../../i18n'
|
||||||
|
|
||||||
const { locale } = useI18n({ useScope: 'global' })
|
const { locale } = useI18n({ useScope: 'global' })
|
||||||
|
|
||||||
@@ -26,7 +26,7 @@ export const newCommand = asyncHandler(async (req: Request, res: Response) => {
|
|||||||
res.status(401).json({ message: 'Unauthorized' })
|
res.status(401).json({ message: 'Unauthorized' })
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (_error) {
|
||||||
res.status(401).json({ message: 'Unauthorized' })
|
res.status(401).json({ message: 'Unauthorized' })
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user