1
0
Fork 1
mirror of https://github.com/elk-zone/elk.git synced 2024-11-05 16:39:58 +00:00

feat(ui): update RTL style (#592)

This commit is contained in:
Chris 2022-12-28 22:05:33 +08:00 committed by GitHub
parent 0501b98a2b
commit 73cec49cf0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 4 deletions

View file

@ -83,7 +83,7 @@ onBeforeUnmount(() => {
hover="bg-gray-100 dark:(bg-gray-700 text-white)"
@click="toggleDark()"
>
<span class="i-ri:sun-line dark:i-ri:moon-line flex-shrink-0 text-xl mr-4 !align-middle" />
<span class="i-ri:sun-line dark:i-ri:moon-line flex-shrink-0 text-xl mr-4 rtl-mr-0 rtl-ml-4 !align-middle" />
{{ colorMode === 'light' ? $t('menu.toggle_theme.dark') : $t('menu.toggle_theme.light') }}
</button>
<NuxtLink
@ -94,7 +94,7 @@ onBeforeUnmount(() => {
hover="bg-gray-100 dark:(bg-gray-700 text-white)"
to="/settings"
>
<span class="i-ri:settings-2-line flex-shrink-0 text-xl mr-4 !align-middle" />
<span class="i-ri:settings-2-line flex-shrink-0 text-xl mr-4 rtl-mr-0 rtl-ml-4 !align-middle" />
{{ $t('nav.settings') }}
</NuxtLink>
</div>

View file

@ -54,7 +54,7 @@ if (props.command) {
</p>
</div>
</div>
<div i-ri:arrow-right-s-line text-xl text-secondary-light />
<div i-ri:arrow-right-s-line rtl-i-ri:arrow-left-s-line text-xl text-secondary-light />
</div>
</NuxtLink>
</template>

View file

@ -14,7 +14,7 @@ const wideLayout = computed(() => route.meta.wideLayout ?? false)
<div flex="~ col" overflow-y-auto justify-between h-full max-w-full>
<div flex flex-col>
<NavSide />
<PublishButton m="y5 xa" lg:m="x5 l3" />
<PublishButton m="y5 xa" lg:m="r5 l3" lg:rtl-m="l5 r3" />
</div>
<div v-if="isMastoInitialised" flex flex-col>
<UserSignInEntry v-if="!currentUser" sm:hidden />