style: 精简顶栏,仅保留 logo,并微调首页卡片内边距

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
shijing 2026-07-15 09:06:36 +08:00
parent 79508ef85c
commit a759268d88
2 changed files with 2 additions and 20 deletions

View File

@ -1,27 +1,9 @@
<script setup> <script setup>
import { computed } from 'vue'
import { useAppStore } from '@/stores/app'
import logoUrl from '@/assets/logo.png' import logoUrl from '@/assets/logo.png'
const store = useAppStore()
const displayName = computed(() => store.currentUser?.name || '未登录')
const avatarInitial = computed(() => (displayName.value || '?')[0].toUpperCase())
</script> </script>
<template> <template>
<header class="topbar"> <header class="topbar">
<img class="topbar-logo" :src="logoUrl" alt="中国建筑材料科学研究总院有限公司" /> <img class="topbar-logo" :src="logoUrl" alt="中国建筑材料科学研究总院有限公司" />
<div class="top-actions">
<span class="status-pill" :class="{ muted: !store.healthy }">
<span class="status-dot"></span>
{{ store.healthy ? '已连接' : '未连接' }}
</span>
<button class="topbar-icon" type="button" title="通知">🔔</button>
<div class="topbar-user">
<div class="topbar-user-avatar">{{ avatarInitial }}</div>
<span class="topbar-user-name">{{ displayName }}</span>
<span class="topbar-user-caret"></span>
</div>
</div>
</header> </header>
</template> </template>

View File

@ -312,7 +312,7 @@ button {
.topbar { .topbar {
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: space-between; justify-content: flex-end;
gap: 16px; gap: 16px;
padding: 0 24px; padding: 0 24px;
background: transparent; background: transparent;
@ -478,7 +478,7 @@ button {
grid-template-columns: 1fr auto; grid-template-columns: 1fr auto;
gap: 24px; gap: 24px;
align-items: center; align-items: center;
padding: 24px 28px; padding: 10px;
border-radius: 14px; border-radius: 14px;
background: background:
radial-gradient(circle at 90% 50%, #ffd1d4 0%, transparent 60%), radial-gradient(circle at 90% 50%, #ffd1d4 0%, transparent 60%),