chenxing 3250de382a
build / build (push) Successful in 1m30s
fix(header): 去掉身份列表上擅自添加的 padding/margin/圆角,完全对齐原样式
上一轮回滚时虽已恢复灰卡片形态,但额外加了列表 padding 6px、行的 margin 0 8px
与 border-radius 6px,导致与原「切换身份」观感仍有出入。本次全部移除。

移除(非原样式):
- .user-card-roles 的 padding: 6px 0
- .u-role 的 margin: 0 8px 与 border-radius: 6px
- .who 的 min-width/ellipsis 系列

恢复(原样式组成部分):
- .user-card 顶层 svg{20px},等价原 .roleinfo-wrap 首段声明(原圆点尺寸就靠它,
  上一版只写了 margin 导致圆点尺寸失去约束)
- .u-role 用 height: 62px 替代 min-height
- .who 回到 .user-wrap 的 padding: 9px 0 + flex: auto
- .nm 内 .t 间距回到 mr-10

实测 9 条身份 scrollHeight=558(9 × 62px,整数倍⇒ 确认已无任何额外间距),
仍正确出滚动条;1 条时 62=62 不滚动。菜单行数管理员 2 / 普通用户 1 不变。
2026-10-08 16:09:34 +08:00
2026-09-10 09:47:46 +08:00
2026-10-08 10:08:22 +08:00
2026-10-08 10:08:22 +08:00
2026-08-10 14:41:13 +08:00
2026-10-08 10:08:22 +08:00
2026-10-08 10:08:22 +08:00
2026-10-08 10:08:22 +08:00
2026-08-10 14:41:13 +08:00
S
Description
managed by projman
5.9 MiB
Languages
JavaScript 81.3%
Vue 13.4%
TypeScript 3.3%
SCSS 1.1%
CSS 0.7%
Other 0.2%