惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

D
Docker
大猫的无限游戏
大猫的无限游戏
Jina AI
Jina AI
酷 壳 – CoolShell
酷 壳 – CoolShell
博客园 - 司徒正美
美团技术团队
雷峰网
雷峰网
阮一峰的网络日志
阮一峰的网络日志
WordPress大学
WordPress大学
T
Tailwind CSS Blog
U
Unit 42
C
Check Point Blog
S
SegmentFault 最新的问题
Martin Fowler
Martin Fowler
Stack Overflow Blog
Stack Overflow Blog
云风的 BLOG
云风的 BLOG
L
LangChain Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
腾讯CDC
罗磊的独立博客
小众软件
小众软件
Recent Announcements
Recent Announcements
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
D
DataBreaches.Net

Recent Commits to openclaw:main

test: merge chat side-result checks · openclaw/openclaw@ddd2c2a test: merge cron history checks · openclaw/openclaw@f7eb746 test: merge responsive navigation shell checks · openclaw/openclaw@c2e4b47 docs(changelog): add codex oauth fixes · openclaw/openclaw@628e6cd test: merge navigation routing cases · openclaw/openclaw@5d8cecb Tests: mock channel registry bundled fallback · openclaw/openclaw@2b08233 Secrets: avoid broad web search discovery for single plugin config · openclaw/openclaw@a464f59 test: merge config view browser checks · openclaw/openclaw@20cf511 fix(status): align oauth health with runtime · openclaw/openclaw@eed7116 feat: add macOS screen snapshots for monitor preview (#67954) thanks … · openclaw/openclaw@f377db1 fix: report shared auth scopes in hello-ok (#67810) thanks @BunsDev · openclaw/openclaw@0b6c39b Auto-reply: avoid eager bundled route fallback · openclaw/openclaw@3ea1bf4 Tests: narrow session binding contract setup · openclaw/openclaw@54e4e16 fix(macOS): enable undo/redo in webchat composer text input (#34962) · openclaw/openclaw@00951dc Tests: speed up channel setup promotion · openclaw/openclaw@82b529a Docs: refresh agent instructions · openclaw/openclaw@5775fe2 fix(auth): serialize OAuth refresh across agents to fix #26322 (#67876) · openclaw/openclaw@8e79080 test: allow ollama public surface boundary test · openclaw/openclaw@7d4f1a6 Docs: add test performance guardrails · openclaw/openclaw@89706d3 Tests: restore context-engine usage proof · openclaw/openclaw@e4c4f95 Tests: slim context engine runtime coverage · openclaw/openclaw@74c198f ci: retry failed custom checkouts · openclaw/openclaw@0ee5baf test: trim duplicate provider auth onboarding cases · openclaw/openclaw@1ffc02e matrix: fix sessions_spawn --thread subagent session spawning (#67643) · openclaw/openclaw@1ce2596 test: reduce auth choice fixture churn · openclaw/openclaw@857b9cd test: mock health status config boundaries · openclaw/openclaw@9d5ab4a test: mock onboard config io boundary · openclaw/openclaw@299694d test: mock legacy state plugin boundaries · openclaw/openclaw@2713089 test: mock channel install boundaries · openclaw/openclaw@b945248 test: mock doctor preview channel boundaries · openclaw/openclaw@b1a3ad4
feat(ui): add browser-local Control UI text size setting ...
BunsDev · 2026-05-14 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -117,6 +117,7 @@ Docs: https://docs.openclaw.ai

117117
118118

### Changes

119119
120+

- Control UI: add a browser-local Text size setting in Appearance and Quick Settings, scaling chat and dense UI text while keeping inputs above the mobile Safari focus-zoom threshold. Fixes #8547. Thanks @BunsDev.

120121

- Docs: add a dedicated ds4 provider page with local DeepSeek V4 Flash config, on-demand startup, context sizing, and live verification steps.

121122

- Release validation: add a package-installed Docker user-journey lane that verifies onboarding, mocked model setup, external plugin install/uninstall, ClickClack outbound/inbound messaging, Gateway restart survival, and doctor.

122123

- Release validation: add package-installed Docker lanes for real TTY onboarding, media and memory persistence, published-package upgrade journeys, and local marketplace plugin install/update/uninstall coverage.

Original file line numberDiff line numberDiff line change

@@ -89,6 +89,8 @@ Docs translations are generated for the same non-English locale set, but the doc

8989
9090

The Appearance panel keeps the built-in Claw, Knot, and Dash themes, plus one browser-local tweakcn import slot. To import a theme, open [tweakcn editor](https://tweakcn.com/editor/theme), choose or create a theme, click **Share**, and paste the copied theme link into Appearance. The importer also accepts `https://tweakcn.com/r/themes/<id>` registry URLs, editor URLs like `https://tweakcn.com/editor/theme?theme=amethyst-haze`, relative `/themes/<id>` paths, raw theme IDs, and default theme names such as `amethyst-haze`.

9191
92+

Appearance also includes a browser-local Text size setting. The setting is stored with the rest of Control UI preferences, applies to chat text, composer text, tool cards, and chat sidebars, and keeps text inputs at least 16px so mobile Safari does not auto-zoom on focus.

93+
9294

Imported themes are stored only in the current browser profile. They are not written to gateway config and do not sync across devices. Replacing the imported theme updates the one local slot; clearing it switches the active theme back to Claw if the imported theme was selected.

9395
9496

## What it can do (today)

Original file line numberDiff line numberDiff line change

@@ -85,6 +85,13 @@

8585

"JetBrains Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo, Monaco, Consolas, monospace;

8686

--font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

8787

--font-display: var(--font-body);

88+

--control-ui-text-scale: 1;

89+

--control-ui-text-xs: calc(11px * var(--control-ui-text-scale));

90+

--control-ui-text-sm: calc(12px * var(--control-ui-text-scale));

91+

--control-ui-text-md: calc(14px * var(--control-ui-text-scale));

92+

--control-ui-text-lg: calc(16px * var(--control-ui-text-scale));

93+

--control-ui-input-text-size: max(16px, calc(14px * var(--control-ui-text-scale)));

94+

--chat-text-size: var(--control-ui-text-md);

8895
8996

/* Shadows - Subtle, layered depth */

9097

--shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.25);

Original file line numberDiff line numberDiff line change

@@ -517,7 +517,7 @@

517517

resize: none;

518518

white-space: pre-wrap;

519519

font-family: var(--font-body);

520-

font-size: 14px;

520+

font-size: var(--control-ui-input-text-size);

521521

line-height: 1.45;

522522

}

523523

@@ -597,7 +597,7 @@

597597

border: none;

598598

background: transparent;

599599

color: var(--text);

600-

font-size: 0.92rem;

600+

font-size: var(--control-ui-input-text-size);

601601

font-family: inherit;

602602

line-height: 1.4;

603603

outline: none;

@@ -615,7 +615,7 @@

615615

.agent-chat__stt-interim {

616616

padding: 10px 14px 0;

617617

color: var(--muted);

618-

font-size: 0.82rem;

618+

font-size: var(--control-ui-text-sm);

619619

line-height: 1.35;

620620

overflow-wrap: anywhere;

621621

}

Original file line numberDiff line numberDiff line change

@@ -22,4 +22,12 @@ describe("chat layout styles", () => {

2222

expect(css).toContain("font-size: 20px;");

2323

expect(css).toContain("place-items: center;");

2424

});

25+
26+

it("keeps composer text scale-driven while preserving mobile input zoom safety", () => {

27+

const css = readLayoutCss();

28+
29+

expect(css).toContain("font-size: var(--control-ui-input-text-size);");

30+

expect(css).toContain(".agent-chat__composer-combobox > textarea");

31+

expect(css).toContain(".chat-compose .chat-compose__field textarea");

32+

});

2533

});

Original file line numberDiff line numberDiff line change

@@ -68,7 +68,7 @@

6868
6969

.sidebar-title {

7070

font-weight: 600;

71-

font-size: 14px;

71+

font-size: var(--control-ui-text-md);

7272

}

7373
7474

.sidebar-content {

@@ -78,7 +78,7 @@

7878

}

7979
8080

.sidebar-markdown {

81-

font-size: 14px;

81+

font-size: var(--control-ui-text-md);

8282

line-height: 1.6;

8383

color: var(--text);

8484

}

@@ -123,7 +123,7 @@

123123
124124

.sidebar-markdown-shell__hint {

125125

color: var(--muted);

126-

font-size: 12px;

126+

font-size: var(--control-ui-text-sm);

127127

line-height: 1.45;

128128

}

129129

@@ -158,7 +158,7 @@

158158

}

159159
160160

.sidebar-markdown-reader.sidebar-markdown {

161-

font-size: 14.5px;

161+

font-size: calc(14.5px * var(--control-ui-text-scale));

162162

line-height: 1.72;

163163

}

164164
Original file line numberDiff line numberDiff line change

@@ -9,7 +9,7 @@

99

border: 1px dashed rgba(255, 255, 255, 0.18);

1010

background: rgba(255, 255, 255, 0.04);

1111

color: var(--muted);

12-

font-size: 12px;

12+

font-size: var(--control-ui-text-sm);

1313

line-height: 1.4;

1414

}

1515

@@ -19,7 +19,7 @@

1919

}

2020
2121

.chat-text {

22-

font-size: 14px;

22+

font-size: var(--chat-text-size);

2323

line-height: 1.5;

2424

word-wrap: break-word;

2525

overflow-wrap: break-word;

Original file line numberDiff line numberDiff line change

@@ -0,0 +1,15 @@

1+

import { describe, expect, it } from "vitest";

2+

import { readStyleSheet } from "../../../../test/helpers/ui-style-fixtures.js";

3+
4+

function readTextCss(): string {

5+

return readStyleSheet("ui/src/styles/chat/text.css");

6+

}

7+
8+

describe("chat text styles", () => {

9+

it("uses browser-local text scale variables for message text", () => {

10+

const css = readTextCss();

11+
12+

expect(css).toContain("font-size: var(--chat-text-size);");

13+

expect(css).toContain("font-size: var(--control-ui-text-sm);");

14+

});

15+

});

Original file line numberDiff line numberDiff line change

@@ -64,7 +64,7 @@

6464

align-items: center;

6565

gap: 6px;

6666

font-weight: 600;

67-

font-size: 14px;

67+

font-size: var(--control-ui-text-md);

6868

line-height: 1.2;

6969

min-width: 0;

7070

}

@@ -157,12 +157,12 @@

157157

}

158158
159159

.chat-tool-card__status-text {

160-

font-size: 11px;

160+

font-size: var(--control-ui-text-xs);

161161

margin-top: 10px;

162162

}

163163
164164

.chat-tool-card__detail {

165-

font-size: 12px;

165+

font-size: var(--control-ui-text-sm);

166166

color: var(--muted);

167167

margin-top: 6px;

168168

}

Original file line numberDiff line numberDiff line change

@@ -801,6 +801,62 @@

801801

color: var(--accent);

802802

}

803803
804+

.settings-text-scale {

805+

display: grid;

806+

gap: 8px;

807+

}

808+
809+

.settings-text-scale__options {

810+

display: grid;

811+

grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));

812+

gap: 8px;

813+

}

814+
815+

.settings-text-scale__btn {

816+

display: grid;

817+

gap: 4px;

818+

justify-items: start;

819+

min-height: 58px;

820+

padding: 10px 12px;

821+

border: 1px solid var(--border);

822+

border-radius: var(--radius-md);

823+

background: var(--card);

824+

color: var(--text);

825+

cursor: pointer;

826+

text-align: left;

827+

transition:

828+

border-color var(--duration-fast) ease,

829+

background var(--duration-fast) ease,

830+

transform var(--duration-fast) ease;

831+

}

832+
833+

.settings-text-scale__btn:hover {

834+

border-color: var(--border-strong);

835+

background: var(--bg-elevated);

836+

transform: translateY(-1px);

837+

}

838+
839+

.settings-text-scale__btn.active {

840+

border-color: var(--accent);

841+

background: var(--accent-subtle);

842+

}

843+
844+

.settings-text-scale__sample {

845+

font-weight: 650;

846+

font-size: 13px;

847+

line-height: 1.2;

848+

}

849+
850+

.settings-text-scale__label {

851+

color: var(--muted);

852+

font-size: 11px;

853+

line-height: 1.2;

854+

}

855+
856+

.settings-text-scale__btn.active .settings-text-scale__label {

857+

color: var(--accent);

858+

}

859+
804860

.settings-info-grid {

805861

display: grid;

806862

gap: 10px;