fix: 修改大屏不能显示bug、修改大屏字体、替换系统logo
Some checks are pending
Gitea Actions Demo / Explore-Gitea-Actions (push) Waiting to run

This commit is contained in:
fyy
2025-07-24 16:09:54 +08:00
parent 85e021b5ac
commit 007bda30bc
13 changed files with 1365 additions and 1176 deletions

View File

@@ -1,5 +1,7 @@
<script setup lang="ts">
import { VbenAvatar } from '../avatar';
import { usePreferences } from '../../../../../../../packages/preferences/src/index';
const { isDark } = usePreferences();
interface Props {
/**
@@ -51,23 +53,39 @@ withDefaults(defineProps<Props>(), {
<a
:class="$attrs.class"
:href="href"
class="flex h-full items-center gap-2 overflow-hidden px-3 text-lg leading-normal transition-all duration-500"
class="flex items-center gap-2 overflow-hidden text-lg leading-normal transition-all duration-500"
>
<VbenAvatar
<div style="margin-top: 20px">
<img
src="../../../../../../../apps/web-antd/src/assets/logoLight.png"
alt=""
v-if="isDark"
width="170"
height="49"
/>
<img
src="../../../../../../../apps/web-antd/src/assets/logoDark.png"
alt=""
v-if="!isDark"
width="170"
height="49"
/>
</div>
<!-- <VbenAvatar
v-if="src"
:alt="text"
:src="src"
:size="logoSize"
:fit="fit"
class="relative rounded-none bg-transparent"
/>
<template v-if="!collapsed">
/> -->
<!-- <template v-if="!collapsed">
<slot name="text">
<span class="text-foreground truncate text-nowrap font-semibold">
{{ text }}
</span>
</slot>
</template>
</template> -->
</a>
</div>
</template>