导航重构:Apifox 式左侧活动栏(空间切换/导航/账号),顶栏瘦身

- 新增 ActivityRail:顶部空间切换(本地/个人/团队组织菜单)、接口/历史/测试/Mock 导航、底部文档/主题/设置/账号(含云端同步状态点)
- TopBar 仅保留新建/导入/导出 + 环境切换,账号/主题/文档/设置全部移入活动栏
- Sidebar 接口|历史 分段切换改由 store sidebarSide 驱动,与活动栏联动;移除底部导航区
- 900px 窄屏顶栏固定 48px 单行验证通过;53 项测试全绿
This commit is contained in:
logan committed 2026-09-18 13:20:37 +08:00
1 parent e77b76986e
commit 9566a5336c
6 files changed
+327 -184

No files matched your search

+42
View File
@@ -514,6 +514,48 @@
}
.side-seg-item .ops-count { margin-left: 2px; }
/* ---------- 左侧活动栏(空间切换 / 导航 / 账号) ---------- */
.rail-space {
@apply flex flex-col items-center gap-0.5 rounded-lg px-1 py-1.5 transition;
}
.rail-space:hover { background: var(--panel-2); }
.rail-item {
@apply relative flex w-12 flex-col items-center gap-0.5 rounded-lg py-1.5 transition whitespace-nowrap;
color: var(--text-dim);
}
.rail-item:hover { background: var(--panel-2); color: var(--text); }
.rail-item.active {
background: color-mix(in srgb, var(--accent) 12%, transparent);
color: var(--accent-strong);
}
.rail-item.active::before {
content: "";
position: absolute;
left: -4px;
top: 20%;
height: 60%;
width: 3px;
border-radius: 2px;
background: var(--accent);
}
.rail-item.rail-login {
background: color-mix(in srgb, var(--accent) 12%, transparent);
color: var(--accent-strong);
}
.rail-sync-dot {
position: absolute;
right: -5px;
bottom: -2px;
width: 8px;
height: 8px;
border-radius: 999px;
border: 2px solid var(--panel);
}
.rail-sync-dot.ok { background: var(--success); }
.rail-sync-dot.error { background: var(--danger); }
.rail-sync-dot.syncing { background: var(--accent); animation: rail-pulse 1s ease-in-out infinite; }
@keyframes rail-pulse { 50% { opacity: 0.35; } }
/* ---------- 方法 chip 着色 ---------- */
.ops-chip.ops-method-GET { background: color-mix(in srgb, var(--m-GET) 14%, transparent); color: var(--m-GET); }
.ops-chip.ops-method-POST { background: color-mix(in srgb, var(--m-POST) 16%, transparent); color: var(--m-POST); }