perf: improve the dark theme

This commit is contained in:
vince
2024-07-15 23:59:22 +08:00
parent f95d9aa609
commit cf16c7bdde
12 changed files with 124 additions and 199 deletions

View File

@@ -51,7 +51,7 @@ const logoClass = computed(() => {
</script>
<template>
<div :class="logoClass" class="group flex h-full items-center text-lg">
<div :class="logoClass" class="flex h-full items-center text-lg">
<a
:class="$attrs.class"
:href="href"
@@ -66,7 +66,7 @@ const logoClass = computed(() => {
/>
<span
v-if="!collapse"
class="text-primary group-[.dark]:text-foreground-dark truncate text-nowrap"
class="text-primary dark:text-foreground truncate text-nowrap"
>
{{ text }}
</span>