Files
deepseek-harness/packages/client/ui-primitives/src/QuotePreview.module.css
T
lsdsjyandlsdsjy 0e49f443dd feat(ui-conversation,ui-chat): 基于 user-text 支持富文本引用与草稿恢复 (#3206)
* feat(ui-chat,ui-conversation): 通过通用文本交互支持原文引用

* refactor(message-quotes): 插件化引用交互与文本扫描豁免

* test(message-quotes): 补齐插件装配预期与交互分发覆盖

* refactor(ui-conversation): 移除引用删除文案的语言切换刷新

* refactor(message-quotes): 移除引用扫描豁免并收窄文本交互接口

* fix(ui-chat): 修复引用浮层的滚动遮挡与恢复

* fix(ui-chat): 对齐 master 的聊天流注入与界面快照

* test(message-quotes): 补齐 Host 入口覆盖并固定子会话回放时序

* refactor(message-quotes): 清理文本依赖特例并修正引用按钮

* fix(ui-primitives): 让引用原文弹层按内容收缩

* fix(ui-primitives): 修复相邻引用悬停弹层重叠与误切换

* fix(message-quotes): 为引用悬停样式限定设备能力

---------

Co-authored-by: lsdsjy <1356263+lsdsjy@users.noreply.github.com>
2026-10-21 14:41:41 +08:00

102 lines
1.6 KiB
CSS

.quote {
display: inline-flex;
align-items: baseline;
gap: 4px;
box-sizing: border-box;
max-width: min(80%, 300px);
margin: 0;
padding: 0;
vertical-align: baseline;
color: var(--dsw-alias-state-business-primary);
font-size: var(--dsh-content-font-size, 14px);
line-height: calc(20px + var(--dsh-content-font-delta, 0px));
}
.popoverText {
display: block;
padding: 8px 10px;
color: var(--dsw-alias-label-primary);
font-size: 14px;
line-height: 20px;
overflow-wrap: anywhere;
white-space: pre-wrap;
}
.source {
min-width: 0;
padding: 0;
border: none;
outline: none;
background: none;
color: inherit;
font: inherit;
line-height: inherit;
text-align: left;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.marker,
.remove {
display: grid;
place-items: center;
align-self: center;
flex: none;
width: 16px;
height: 16px;
padding: 0;
color: inherit;
user-select: none;
}
.marker {
pointer-events: none;
}
.remove {
border: none;
border-radius: 50%;
corner-shape: round;
background: transparent;
cursor: pointer;
}
.quoteMark,
.closeMark {
grid-area: 1 / 1;
transition: opacity 120ms ease;
}
.closeMark {
opacity: 0;
}
.quote[data-removable]:focus-within .quoteMark {
opacity: 0;
}
.quote[data-removable]:focus-within .closeMark {
opacity: 1;
}
@media (hover: hover) {
.quote[data-removable]:hover .quoteMark {
opacity: 0;
}
.quote[data-removable]:hover .closeMark {
opacity: 1;
}
}
@media (hover: none) {
.quote[data-removable] .quoteMark {
opacity: 0;
}
.quote[data-removable] .closeMark {
opacity: 1;
}
}