feat: compose button (#2037)

zio/stable
patak 2023-05-01 18:08:09 +02:00 committed by GitHub
parent 656b789e7c
commit dcf0f93eb9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 15 additions and 8 deletions

View File

@ -34,15 +34,22 @@ router.afterEach(() => {
</div>
</NuxtLink>
<div
hidden xl:flex items-center me-8 mt-2
:class="{ 'pointer-events-none op0': !back || back === '/', 'xl:flex': $route.name !== 'tag' }"
hidden xl:flex items-center me-8 mt-2 gap-1
>
<NuxtLink
:aria-label="$t('nav.back')"
@click="$router.go(-1)"
>
<div i-ri:arrow-left-line class="rtl-flip" btn-text />
</NuxtLink>
<CommonTooltip :content="$t('nav.back')">
<NuxtLink
:aria-label="$t('nav.back')"
:class="{ 'pointer-events-none op0': !back || back === '/', 'xl:flex': $route.name !== 'tag' }"
@click="$router.go(-1)"
>
<div text-xl i-ri:arrow-left-line class="rtl-flip" btn-text />
</NuxtLink>
</CommonTooltip>
<CommonTooltip :content="$t('action.compose')">
<button :aria-label="$t('action.compose')" btn-action-icon @click="openPublishDialog('compose')">
<div text-xl i-ri:quill-pen-line user-only class="rtl-flip" btn-text />
</button>
</CommonTooltip>
</div>
</div>
</template>