Files
ReelShortWeb/src/styles/business/app-user-management.css
T
Vicky 44c2c46a68 chore(web): 收口前几轮后台改动(品牌 / 媒资上传 / 轮播图 / 类型管理 / 操作日志 / App 用户)
为什么:这些改动在前几轮就已完成并在 :3005 验证过,但一直留在工作区没有入库。
下一步 3-4 的四个页面依赖其中的公共样式入口(src/styles/business/index.css)与
api/admin 的公共类型(PageResult 等),如果不先收口,新页面的提交就会夹带旧改动,
既说不清 diff 边界,也让 index.css 这类多轮共用的文件长期处于半提交状态。

本提交只做归档,不改行为:
- 品牌与接口基址改成 FruitShorts / 短剧服务(.env.*、README、vite 代理)
- 去掉前端 mock 数据目录(src/data、src/permissions、stores/auth),改为走真实接口
- 新增 api/admin 下的接口封装与 src/utils/uploader.ts(媒资分片直传)
- 新增/改造:轮播图管理、类型管理、操作日志、App 用户管理、后台布局与公共样式
2026-10-15 13:28:01 +08:00

136 lines
2.2 KiB
CSS

/**
* App 用户管理页。
* 窄窗口下的重点是两件事:筛选控件换行而不是被挤出可视区;长昵称在单元格里截断而不是撑破表格。
*/
.app-user-toolbar {
display: flex;
align-items: center;
gap: 10px;
flex-wrap: wrap;
margin-bottom: 14px;
}
.app-user-toolbar .app-user-keyword {
flex: 1 1 240px;
min-width: 200px;
max-width: 320px;
}
.app-user-toolbar .app-user-status,
.app-user-toolbar .app-user-country {
width: 150px;
flex: 0 0 150px;
}
.app-user-count {
margin-left: auto;
color: #858b95;
font-size: 13px;
white-space: nowrap;
}
/* 用户单元格:头像固定宽度,文字块 min-width:0 才能让省略号生效 */
.app-user-cell {
display: flex;
align-items: center;
gap: 10px;
min-width: 0;
}
.app-user-avatar {
display: grid;
place-content: center;
flex: 0 0 34px;
width: 34px;
height: 34px;
overflow: hidden;
border-radius: 50%;
background: #6f7cf0;
color: #fff;
font-size: 13px;
font-weight: 600;
line-height: 1;
}
.app-user-avatar img {
width: 100%;
height: 100%;
object-fit: cover;
}
.app-user-meta {
display: flex;
flex-direction: column;
gap: 2px;
min-width: 0;
}
.app-user-name,
.app-user-uid {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.app-user-name {
color: #302d44;
font-size: 13px;
font-weight: 600;
}
.app-user-uid {
color: #9a97a8;
font-size: 12px;
}
.app-user-mono {
font-variant-numeric: tabular-nums;
}
/* 详情抽屉 */
.app-user-drawer .el-drawer__header {
margin-bottom: 4px;
}
.app-user-summary {
display: flex;
align-items: center;
gap: 12px;
padding: 4px 0 16px;
border-bottom: 1px solid #f0eef4;
}
.app-user-summary .app-user-name {
font-size: 15px;
}
.app-user-section {
padding-top: 16px;
}
.app-user-section-title {
margin: 0 0 8px;
color: #302d44;
font-size: 13px;
font-weight: 650;
}
/* 抽屉内的表格:内容多时由 .el-drawer__body 统一滚动,这里不再套一层滚动条 */
.app-user-drawer .el-table {
font-size: 12px;
}
.app-user-drawer .el-table .el-table__cell {
padding: 6px 0;
}
html.dark .app-user-name,
html.dark .app-user-section-title {
color: #e8e6ef;
}
html.dark .app-user-summary {
border-bottom-color: #2c2c37;
}