refactor: reduce unnecessary html structures (#1319)

pull/1325/head
Alex Liu 2023-01-20 02:00:56 +08:00 zatwierdzone przez GitHub
rodzic 5465409fcb
commit 1a074aaff6
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
2 zmienionych plików z 2 dodań i 26 usunięć

Wyświetl plik

@ -19,10 +19,8 @@ defineProps<{
</NuxtLink>
<div flex-auto />
<div flex items-center>
<NuxtLink :to="getAccountRoute(account.moved as any)">
<button btn-solid h-fit>
{{ $t('account.go_to_profile') }}
</button>
<NuxtLink :to="getAccountRoute(account.moved as any)" btn-solid inline-block h-fit>
{{ $t('account.go_to_profile') }}
</NuxtLink>
</div>
</div>

Wyświetl plik

@ -1,22 +0,0 @@
<script setup>
const disabled = computed(() => !isHydrated.value || !currentUser.value)
const disabledVisual = computed(() => isHydrated.value && !currentUser.value)
</script>
<template>
<button
flex="~ gap2 center"
w-9 h-9 py2
xl="w-auto h-auto"
rounded-3
cursor-pointer disabled:pointer-events-none
text-primary
border-1 border-primary
:class="disabledVisual ? 'op25' : 'hover:bg-primary hover:text-inverted'"
:disabled="disabled"
@click="openPublishDialog()"
>
<div i-ri:quill-pen-line />
<span hidden xl:block>{{ $t('action.compose') }}</span>
</button>
</template>