mirror of
https://github.com/nexu-io/open-design.git
synced 2026-09-28 21:45:18 +08:00
docs(design): finalize chat panel review updates
This commit is contained in:
@@ -665,13 +665,13 @@ button { font-family: inherit; border: none; background: none; cursor: pointer;
|
||||
display: inline-flex; align-items: flex-start; gap: 10px;
|
||||
max-width: min(320px, 100%); padding: 9px 11px;
|
||||
border: none; border-radius: 14px 14px 4px 14px;
|
||||
background: var(--bg-fill-tertiary); box-shadow: none;
|
||||
color: var(--text); text-align: start;
|
||||
background: #121212; box-shadow: none;
|
||||
color: #fff; text-align: start;
|
||||
}
|
||||
.user-status-card__icon {
|
||||
flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
|
||||
width: 28px; height: 28px; border-radius: var(--radius);
|
||||
color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent);
|
||||
color: #fff; background: #353535;
|
||||
}
|
||||
.user-status-card__icon > svg { display: block; width: 16px; height: 16px; }
|
||||
.user-status-card__copy { min-width: 0; flex: 1 1 auto; overflow: hidden; display: grid; gap: 2px; }
|
||||
@@ -680,12 +680,11 @@ button { font-family: inherit; border: none; background: none; cursor: pointer;
|
||||
font-size: var(--t-body); line-height: 1.2; font-weight: 600;
|
||||
}
|
||||
.user-status-card__copy span {
|
||||
overflow-wrap: anywhere; font-size: var(--t-mini); line-height: 1.35; color: var(--text-muted);
|
||||
overflow-wrap: anywhere; font-size: var(--t-mini); line-height: 1.35; color: #bdbdbd;
|
||||
}
|
||||
/* 标题保持一行;280px 给完整标题留出空间,同时维持紧凑的消息宽度。 */
|
||||
.st-b .design-system-generation-status {
|
||||
width: min(280px, 100%);
|
||||
background: color-mix(in srgb, var(--text) 6%, var(--bg));
|
||||
}
|
||||
|
||||
/* 超长消息折到 6 行,末尾留一枚「…」,hover 时「…」后面浮出下拉箭头。
|
||||
|
||||
@@ -665,13 +665,13 @@ button { font-family: inherit; border: none; background: none; cursor: pointer;
|
||||
display: inline-flex; align-items: flex-start; gap: 10px;
|
||||
max-width: min(320px, 100%); padding: 9px 11px;
|
||||
border: none; border-radius: 14px 14px 4px 14px;
|
||||
background: var(--bg-fill-tertiary); box-shadow: none;
|
||||
color: var(--text); text-align: start;
|
||||
background: #121212; box-shadow: none;
|
||||
color: #fff; text-align: start;
|
||||
}
|
||||
.user-status-card__icon {
|
||||
flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
|
||||
width: 28px; height: 28px; border-radius: var(--radius);
|
||||
color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent);
|
||||
color: #fff; background: #353535;
|
||||
}
|
||||
.user-status-card__icon > svg { display: block; width: 16px; height: 16px; }
|
||||
.user-status-card__copy { min-width: 0; flex: 1 1 auto; overflow: hidden; display: grid; gap: 2px; }
|
||||
@@ -680,12 +680,11 @@ button { font-family: inherit; border: none; background: none; cursor: pointer;
|
||||
font-size: var(--t-body); line-height: 1.2; font-weight: 600;
|
||||
}
|
||||
.user-status-card__copy span {
|
||||
overflow-wrap: anywhere; font-size: var(--t-mini); line-height: 1.35; color: var(--text-muted);
|
||||
overflow-wrap: anywhere; font-size: var(--t-mini); line-height: 1.35; color: #bdbdbd;
|
||||
}
|
||||
/* 标题保持一行;280px 给完整标题留出空间,同时维持紧凑的消息宽度。 */
|
||||
.st-b .design-system-generation-status {
|
||||
width: min(280px, 100%);
|
||||
background: color-mix(in srgb, var(--text) 6%, var(--bg));
|
||||
}
|
||||
|
||||
/* 超长消息折到 6 行,末尾留一枚「…」,hover 时「…」后面浮出下拉箭头。
|
||||
|
||||
@@ -0,0 +1,33 @@
|
||||
# Design QA:设计系统工作区自动创建
|
||||
|
||||
## 验收范围
|
||||
|
||||
- 参考:本轮评审中用户提供的状态卡截图与后续覆盖要求。
|
||||
- 实现:[chat-panel-next.html](../chat-panel-next.html#msg-design-system-generation-status)。
|
||||
- 状态:浅色主题下的“设计系统工作区 · 自动创建”,默认静止态。
|
||||
- 目标:调色盘图标与标题顶部对齐;标题保持一行;卡面与普通用户输入统一为黑色;标题和图标为白色;说明文字与图标底使用柔和灰色。
|
||||
|
||||
## 验收结果
|
||||
|
||||
- 状态卡最终边界为 `280 × 67.98px`,标题完整显示为一行,说明文字完整显示为两行。
|
||||
- 图标显示为 `16 × 16px`,使用 `24 × 24` viewBox;图标容器、标题和文案容器顶部对齐。
|
||||
- 最终计算色为:卡面 `#121212`、标题和图标 `#FFFFFF`、说明 `#BDBDBD`、图标底 `#353535`。
|
||||
- 卡片内部没有溢出或裁切,页面控制台没有错误或警告。
|
||||
- 目标元素在页面中只出现一次,没有按钮、链接或额外键盘焦点。
|
||||
|
||||
## 关键实现
|
||||
|
||||
- 卡片宽度使用 `min(280px, 100%)`,窄容器中可以随父容器收缩。
|
||||
- 标题保持单行并使用省略号兜底;说明文字允许自然断词。
|
||||
- SVG 设为装饰性图标,不进入辅助技术的可访问名称。
|
||||
- 卡片沿用用户消息的右对齐关系,未改变同组状态的上下间距。
|
||||
|
||||
## 响应式说明
|
||||
|
||||
组件本身没有内部横向溢出。组件全集展示页在小于约 `360px` 的视口中仍有既有的最小宽度限制;该限制属于展示页外壳,不由本次状态卡引入。
|
||||
|
||||
## QA blocker
|
||||
|
||||
无。
|
||||
|
||||
final result: passed
|
||||
@@ -345,13 +345,13 @@ button { font-family: inherit; border: none; background: none; cursor: pointer;
|
||||
display: inline-flex; align-items: flex-start; gap: 10px;
|
||||
max-width: min(320px, 100%); padding: 9px 11px;
|
||||
border: none; border-radius: 14px 14px 4px 14px;
|
||||
background: var(--bg-fill-tertiary); box-shadow: none;
|
||||
color: var(--text); text-align: start;
|
||||
background: #121212; box-shadow: none;
|
||||
color: #fff; text-align: start;
|
||||
}
|
||||
.user-status-card__icon {
|
||||
flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
|
||||
width: 28px; height: 28px; border-radius: var(--radius);
|
||||
color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent);
|
||||
color: #fff; background: #353535;
|
||||
}
|
||||
.user-status-card__icon > svg { display: block; width: 16px; height: 16px; }
|
||||
.user-status-card__copy { min-width: 0; flex: 1 1 auto; overflow: hidden; display: grid; gap: 2px; }
|
||||
@@ -360,12 +360,11 @@ button { font-family: inherit; border: none; background: none; cursor: pointer;
|
||||
font-size: var(--t-body); line-height: 1.2; font-weight: 600;
|
||||
}
|
||||
.user-status-card__copy span {
|
||||
overflow-wrap: anywhere; font-size: var(--t-mini); line-height: 1.35; color: var(--text-muted);
|
||||
overflow-wrap: anywhere; font-size: var(--t-mini); line-height: 1.35; color: #bdbdbd;
|
||||
}
|
||||
/* 标题保持一行;280px 给完整标题留出空间,同时维持紧凑的消息宽度。 */
|
||||
.st-b .design-system-generation-status {
|
||||
width: min(280px, 100%);
|
||||
background: color-mix(in srgb, var(--text) 6%, var(--bg));
|
||||
}
|
||||
|
||||
/* 超长消息折到 6 行,末尾留一枚「…」,hover 时「…」后面浮出下拉箭头。
|
||||
|
||||
Reference in New Issue
Block a user