* 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 <[email protected]>
104 lines
2.0 KiB
CSS
104 lines
2.0 KiB
CSS
/* Block, not inline-flex: consumers wrap full-width list rows and an
|
|
* inline wrapper would shrink them; the card still measures this rect. */
|
|
.root {
|
|
position: relative;
|
|
display: block;
|
|
}
|
|
|
|
/* The preview remains hit-testable so pointer entry cancels the grace close. */
|
|
.card {
|
|
--dsw-hovercard-bg: #2C2C2E;
|
|
position: fixed;
|
|
z-index: 100;
|
|
box-sizing: border-box;
|
|
width: 244px;
|
|
padding: 12px 16px;
|
|
border-radius: var(--dsw-radius-lg);
|
|
background: var(--dsw-hovercard-bg);
|
|
box-shadow: var(--dsw-shadow-lv3);
|
|
}
|
|
|
|
.copyable {
|
|
cursor: pointer;
|
|
}
|
|
|
|
.copyable:focus-visible {
|
|
outline: var(--dsw-focus-ring-width) solid var(--dsw-focus-ring-color, var(--dsw-alias-state-business-primary));
|
|
outline-offset: 2px;
|
|
}
|
|
|
|
.feedback {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.copied {
|
|
color: #FFFFFF;
|
|
font-size: 14px;
|
|
line-height: 20px;
|
|
text-align: center;
|
|
}
|
|
|
|
.status {
|
|
position: absolute;
|
|
width: 1px;
|
|
height: 1px;
|
|
overflow: hidden;
|
|
clip: rect(0 0 0 0);
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.preview {
|
|
display: flex;
|
|
flex-direction: column;
|
|
padding: 0;
|
|
overflow: hidden;
|
|
border: 0;
|
|
border-radius: var(--dsw-radius-lg);
|
|
background: var(--dsw-alias-bg-layer-1);
|
|
color: var(--dsw-alias-label-primary);
|
|
box-shadow: var(--dsw-elevation-panel);
|
|
opacity: 1;
|
|
transition: opacity var(--dsh-hover-preview-fade) linear;
|
|
}
|
|
|
|
@starting-style {
|
|
.preview { opacity: 0; }
|
|
}
|
|
|
|
.preview[data-closing] {
|
|
opacity: 0;
|
|
pointer-events: none;
|
|
}
|
|
|
|
@media (prefers-reduced-motion: reduce) {
|
|
.preview { transition: none; }
|
|
}
|
|
|
|
.inline { display: inline; }
|
|
.media {
|
|
--dsh-scrollbar-thumb: var(--dsw-alias-scrollbar-bg-l2);
|
|
--dsh-scrollbar-thumb-hover: var(--dsw-alias-scrollbar-hover-l2);
|
|
overflow: auto;
|
|
padding: 8px;
|
|
border: 0;
|
|
color: var(--dsw-alias-label-primary);
|
|
background: var(--dsw-specific-menu);
|
|
backdrop-filter: var(--dsw-menu-backdrop-filter);
|
|
box-shadow: var(--dsw-elevation-panel);
|
|
}
|
|
|
|
.fitContent {
|
|
width: max-content;
|
|
}
|
|
|
|
.portal {
|
|
display: contents;
|
|
}
|
|
|
|
.bridge {
|
|
position: fixed;
|
|
z-index: 100;
|
|
}
|