refactor: generic components (#868)

Co-authored-by: Anthony Fu <anthonyfu117@hotmail.com>
This commit is contained in:
三咲智子 Kevin Deng 2023-01-08 15:49:32 +08:00 committed by GitHub
parent 5c8f75b9b7
commit b30ebc12f8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
13 changed files with 63 additions and 61 deletions

View file

@ -16,7 +16,7 @@ function toggleDark() {
<footer p4 text-sm text-secondary-light flex="~ col">
<div flex="~ gap2" items-center mb4>
<CommonTooltip :content="$t('nav.toggle_theme')">
<button flex i-ri:sun-line dark:i-ri:moon-line text-lg :aria-label="$t('nav.toggle_theme')" @click="toggleDark()" />
<button flex i-ri:sun-line dark-i-ri:moon-line text-lg :aria-label="$t('nav.toggle_theme')" @click="toggleDark()" />
</CommonTooltip>
<CommonTooltip :content="$t('nav.zen_mode')">
<button