feat: 替换侧边栏中的NuxtImg为img标签,压缩背景图片

This commit is contained in:
Timothy Yin 2025-04-13 15:41:02 +08:00
parent 3a8b78ea7b
commit e67caa8ec6
Signed by: HoshinoSuzumi
GPG Key ID: 4052E565F04B122A
3 changed files with 2 additions and 2 deletions

View File

@ -40,7 +40,7 @@ const loginState = useLoginState();
<div <div
class="flex h-12 justify-center items-center gap-2 rounded truncate group-has-[[data-collapsible=icon]]/sidebar-wrapper:justify-start transition-all duration-200 ease-in-out" class="flex h-12 justify-center items-center gap-2 rounded truncate group-has-[[data-collapsible=icon]]/sidebar-wrapper:justify-start transition-all duration-200 ease-in-out"
> >
<NuxtImg <img
src="/images/xsh_logo.png" src="/images/xsh_logo.png"
alt="Logo" alt="Logo"
class="w-9 max-w-9 aspect-square group-has-[[data-collapsible=icon]]/sidebar-wrapper:w-full transition-all duration-200 ease-in-out" class="w-9 max-w-9 aspect-square group-has-[[data-collapsible=icon]]/sidebar-wrapper:w-full transition-all duration-200 ease-in-out"

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 MiB

After

Width:  |  Height:  |  Size: 651 KiB