diff --git a/src/assets/styles/header.scss b/src/assets/styles/header.scss index b93310f..d432742 100644 --- a/src/assets/styles/header.scss +++ b/src/assets/styles/header.scss @@ -227,6 +227,12 @@ width: 260px; background: #fff; + /* 原 .roleinfo-wrap 顶层同款:圆点与标题图标统一 20px */ + svg { + width: 20px; + height: 20px; + } + .user-card-hd { height: 50px; padding: 0 16px; @@ -235,8 +241,6 @@ border-bottom: 1px solid #e8eaec; svg { - width: 20px; - height: 20px; margin-right: 8px; } .ttl { @@ -265,12 +269,11 @@ } } - /* 身份列表:沿用原.roleinfo-wrap 的灰卡片形态(2026-10-08 回滚,用户要求保持原角色选择样式) */ + /* 身份列表:完全沿用原 .roleinfo-wrap 的灰卡片形态,不加任何额外 padding/margin/圆角 */ .user-card-roles { max-height: 310px; overflow-y: scroll; overscroll-behavior: contain; - padding: 6px 0; &::-webkit-scrollbar { width: 6px; @@ -291,9 +294,7 @@ background-color: #f9f9f9; display: flex; align-items: center; - min-height: 62px; - margin: 0 8px; - border-radius: 6px; + height: 62px; cursor: pointer; user-select: none; @@ -305,44 +306,32 @@ background-color: #f9f9f9; } - > svg { - width: 20px; - height: 20px; + svg { margin: 0 16px; - flex: 0 0 20px; } .who { - flex: auto; - min-width: 0; - padding: 9px 16px 9px 0; + padding: 9px 0; border-bottom: 1px solid #e9e9e9; + flex: auto; .nm { font-size: 15px; color: #323233; - line-height: 20px; display: flex; align-items: center; .t { - overflow: hidden; - text-overflow: ellipsis; - white-space: nowrap; - margin-right: 8px; + margin-right: 10px; } } .sch { margin-top: 2px; font-size: 12px; color: #656667; - overflow: hidden; - text-overflow: ellipsis; - white-space: nowrap; } } - /* 末行不画分隔线(原 .roles-ul li:last-child .user-wrap 同款) */ &:last-child .who { border-bottom: none; }