update logo style

This commit is contained in:
Timi
2026-11-04 14:33:10 +08:00
parent 8f6b8c1eff
commit 2b3da3c97b
4 changed files with 189 additions and 10 deletions
+16 -4
View File
@@ -2,9 +2,11 @@
<div class="tui-app-shell" :class="{ 'is-rail': showRail }" :style="shellStyle">
<nav v-if="showRail" class="rail" aria-label="主导航">
<div v-if="logoText || $slots.logo" class="logo">
<slot name="logo">
<span v-text="logoText" />
</slot>
<div class="mark">
<slot name="logo">
<span v-text="logoText" />
</slot>
</div>
</div>
<t-button
v-for="item in itemList"
@@ -215,9 +217,19 @@ function onTabChange(value: AppShellValue): void {
.logo {
height: 4.5rem;
display: grid;
font-size: var(--tui-rail-logo-font-size, 1.25rem);
font-weight: 600;
place-items: center;
font-size: var(--tui-rail-logo-font-size, 1.25rem);
.mark {
width: 3rem;
height: 3rem;
display: grid;
color: var(--td-text-color-anti, #fff);
background: var(--td-brand-color);
place-items: center;
border-radius: .75rem;
}
}
.rail-item {