fix(client): right-align font size controls without empty column

This commit is contained in:
yixiangihsiang committed 2026-11-17 11:20:53 +08:00
1 parent 0e6c8928d8
commit 0b95ec096b
4 files changed
+5 -6

No files matched your search

+2 -2
View File
@@ -30,8 +30,8 @@
en: 18f62cd5e6d32570
zh: 728ddd17d7610470
/deepseek-ai-dsh-client-ui-theme/understand-the-implementation:
en: de2e61c0e342c637
zh: b1bf19c75153f3d9
en: 875bd262240187c1
zh: 32ffb98f502ed042
/deepseek-ai-dsh-client-ui-theme/understand-the-implementation/stylesheets:
en: 148903d8cd6580f5
zh: 7ff2ff90954798b8
+1 -1
View File
@@ -57,7 +57,7 @@ Shared menus use `--dsw-menu-surface-fill` and blur through `MenuSurface`; platf
<details>
<summary>Implementation internals — click to expand</summary>
Font-size controls reserve the same disclosure column for every role, so expanded code and terminal values align with the text value.
Font-size controls align their actual content to the row’s right edge. Code and terminal rows end at the px unit without reserving space for the text row’s disclosure button.
The service owns theme, font-size, and font-family state and publishes snapshots. The ui-layout presenter applies those snapshots, and the token sheets own the color and conversation text scales.
+1 -1
View File
@@ -57,7 +57,7 @@ Desktop 的固定快捷键 `Cmd`/`Ctrl` + `+`(或 `=`)和 `Cmd`/`Ctrl` + `-`
<details>
<summary>实现细节——点击展开</summary>
各字体字号控件预留相同的展开操作列,使展开后的代码、终端数值与正文字号对齐。
字号控件按实际内容与行的右边缘对齐。代码和终端字号以 px 单位结束,不为正文字号的展开按钮预留空位。
服务拥有主题、字号与字体状态并发布快照。ui-layout 展示转换器应用这些快照,token 样式表则拥有颜色与会话文本尺度。
@@ -52,8 +52,7 @@
/* Standard-size stepper with an always-visible arrow column and an external unit label. */
.control {
display: inline-grid;
grid-template-columns: 72px max-content 24px;
display: inline-flex;
align-items: center;
gap: 8px;
}