forked from Mirrors/elk
feat: compose button (#2037)
This commit is contained in:
parent
656b789e7c
commit
dcf0f93eb9
1 changed files with 15 additions and 8 deletions
|
@ -34,15 +34,22 @@ router.afterEach(() => {
|
||||||
</div>
|
</div>
|
||||||
</NuxtLink>
|
</NuxtLink>
|
||||||
<div
|
<div
|
||||||
hidden xl:flex items-center me-8 mt-2
|
hidden xl:flex items-center me-8 mt-2 gap-1
|
||||||
:class="{ 'pointer-events-none op0': !back || back === '/', 'xl:flex': $route.name !== 'tag' }"
|
|
||||||
>
|
>
|
||||||
|
<CommonTooltip :content="$t('nav.back')">
|
||||||
<NuxtLink
|
<NuxtLink
|
||||||
:aria-label="$t('nav.back')"
|
:aria-label="$t('nav.back')"
|
||||||
|
:class="{ 'pointer-events-none op0': !back || back === '/', 'xl:flex': $route.name !== 'tag' }"
|
||||||
@click="$router.go(-1)"
|
@click="$router.go(-1)"
|
||||||
>
|
>
|
||||||
<div i-ri:arrow-left-line class="rtl-flip" btn-text />
|
<div text-xl i-ri:arrow-left-line class="rtl-flip" btn-text />
|
||||||
</NuxtLink>
|
</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>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
Loading…
Reference in a new issue