feat(V0.2): 任务类型标签 —— 项目级自定义 + 任务标记 + 列表/看板展示
Docker Build and Push / build-image (push) Successful in 1m21s
Docker Build and Push / build-image (push) Successful in 1m21s
- 数据: Project.taskKinds (JSON, 未配置回落默认 需求/Bug/FEATURE/优化), Task.kind (≤20字); 迁移 20261025030000_task_kind - 服务: 项目 PUT 支持整体替换 taskKinds (去重/上限30/至少1个); 任务 create/update 支持 kind (空串清空) - 项目管理: 新增「任务类型」分区, chips 展示 + 弹层编辑 (删除/新增) - 任务详情: 新增「类型」字段, 项目类型 chips 点选, 可清空 - 展示: 列表行左下与看板卡左下显示彩色小标签 (需求蓝/Bug红/FEATURE紫/优化橙, 自定义类型灰)
This commit is contained in:
@@ -699,6 +699,20 @@ body.me-safe-top .app-safe-top { height: 0; }
|
||||
.mv-card.dragover.after { border-bottom: 3px solid var(--color-primary); }
|
||||
.mv-card.dragover.before { border-top: 3px solid var(--color-primary); }
|
||||
|
||||
/* 任务类型小标签: 列表行左下 / 看板卡左下 */
|
||||
.kind-tag {
|
||||
display: inline-flex; align-items: center;
|
||||
font-size: 10px; line-height: 1; font-weight: 600; color: #fff;
|
||||
border-radius: 4px; padding: 3px 5px; flex-shrink: 0; white-space: nowrap;
|
||||
}
|
||||
/* 项目管理: 任务类型编辑 chips */
|
||||
.kind-chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
|
||||
.kind-chip {
|
||||
display: inline-flex; align-items: center; gap: 5px;
|
||||
font-size: 12.5px; color: #fff; border-radius: 999px; padding: 5px 6px 5px 11px;
|
||||
}
|
||||
.kind-chip .x { font-size: 13px; color: rgba(255,255,255,.75); cursor: pointer; padding: 0 4px; }
|
||||
|
||||
/* 拖动跟手浮层: 克隆原卡片淡化后挂在 body 顶层, 跟随指针 */
|
||||
.drag-ghost {
|
||||
position: fixed; left: 0; top: 0; z-index: 1000;
|
||||
|
||||
Reference in New Issue
Block a user