mirror of
https://github.com/deepseek-ai/deepseek-harness
synced 2026-08-15 21:04:50 +00:00
1. 统一会话列宽度轴:新增 --dsh-chat-content-width(748px),输入框、todo、goal、queue、approval、plan review、ask question 等容器的宽度与边距全部由该变量推导,消除各面板之间的像素漂移,窄视口下的边缘留白也保持一致。 2. 输入框自适应与细节:控制行改为容器查询(460px 阈值以下权限选择器只显示图标+下拉,隐藏文字);卡片圆角 20→22、行内边距调整并整体下移 2px(发送按钮除外);permission/model 触发器统一 24px 圆角;Plan 与 Read Only 间距 +8。 3. 修复浮层菜单溢出:slash 菜单与命令弹层钳制到输入卡片宽度,超长行以省略号截断;Tooltip 增加 12px 视口边缘安全距离。 4. 增加与替换图标:Add provider 改用输入框同款加号图标(IconPlusOutline16),统一图标尺寸与字号。 5. 统一 Settings → Models 组件:补齐按钮 hover 态、select 下拉箭头不再贴边、标题区与 provider 卡片间距 +12。 6. 侧边栏交互:add workspace / group by / create session / 收起侧边栏四个图标按钮增加 500ms 延迟 tooltip(前两个向下弹出);展开态的 New Session 不再重复显示 tooltip;侧边栏窄屏自适应收起逻辑微调。 7. 其他:hero 区 workspace 徽章右移对齐;附带 Agent Note(中英双语)记录共享宽度轴与容器查询的设计取舍。
50 lines
1.4 KiB
CSS
50 lines
1.4 KiB
CSS
/* Visual spec mirrors deepsuite @deepseek/ui Tooltip.css (size m, no arrow),
|
|
except padding tightened 6/12 -> 3/7, type 14/22 -> 13/20, and radius
|
|
10 -> 8 by product ruling: tooltip-bg plate,
|
|
one text color across both themes (the plate stays dark in light and dark
|
|
mode). Behavior (fixed positioning off the anchor rect) is local — the
|
|
upstream Floating stack is intentionally not vendored. */
|
|
|
|
.bubble {
|
|
position: fixed;
|
|
z-index: 100;
|
|
/* Fixed-position shrink-to-fit measures only the space from `left` to the
|
|
viewport edge, so anchors near the right edge would wrap early;
|
|
max-content sizes by the label alone, capped at half the viewport. */
|
|
width: max-content;
|
|
max-width: 50vw;
|
|
padding: 3px 7px;
|
|
border-radius: 8px;
|
|
background: var(--dsw-alias-tooltip-bg);
|
|
color: var(--dsw-static-neutral-bluish-00);
|
|
font-size: 13px;
|
|
line-height: 20px;
|
|
white-space: pre-line;
|
|
/* Unbreakable tokens (URLs, paths) must not push past max-width. */
|
|
overflow-wrap: break-word;
|
|
pointer-events: none;
|
|
animation: tooltip-in 150ms var(--ds-ease-in-out);
|
|
}
|
|
|
|
.bubble[data-side='right'] {
|
|
transform: translateY(-50%);
|
|
}
|
|
|
|
.bubble[data-side='bottom'] {
|
|
transform: translateX(-50%);
|
|
}
|
|
|
|
.bubble[data-side='top'] {
|
|
transform: translate(-50%, -100%);
|
|
}
|
|
|
|
@keyframes tooltip-in {
|
|
from { opacity: 0; }
|
|
}
|
|
|
|
@media (prefers-reduced-motion: reduce) {
|
|
.bubble {
|
|
animation: none;
|
|
}
|
|
}
|