The best way to control Claude Code, Codex and more from any computer or phone
fix(mobile): separate unfolded thread list from header (#13088)
Alex committed
Oct 11, 2026 at 11:29 UTC
80cd57585d7e5ca19c9a495bb34cf3bda8b5d872
3 files changed
+23
-5
apps/mobile/src/lib/mobileTheme.test.ts
+20
-3
@@ -158,6 +158,21 @@ describe("mobile themes", () => {
158
}
159
});
160
161
+ it.each(MOBILE_THEME_IDS)("keeps %s sidebar text readable on Android", (themeId) => {
162
+ for (const appearance of ["light", "dark"] as const) {
163
+ const variables = getMobileThemeRuntimeVariables(themeId, appearance, "android");
164
+ for (const foreground of [
165
+ "--color-drawer-foreground",
166
+ "--color-drawer-foreground-muted",
167
+ ] as const) {
168
+ expect(
169
+ contrastRatio(variables[foreground], variables["--color-drawer"]),
170
+ `${appearance}: ${foreground}`,
171
+ ).toBeGreaterThanOrEqual(4.5);
172
+ }
173
+ }
174
+ });
175
+
176
it("applies palette overrides on top of the selected built-in theme", () => {
177
const variables = getMobileThemeVariables("ocean", "dark", {
178
"--color-primary": "#123456",
@@ -182,9 +197,11 @@ describe("mobile themes", () => {
197
runtime[platform === "android" ? "--color-header" : "--color-drawer"],
198
runtime["--color-screen"],
199
);
185
- expect(relativeLuminance(sidebar)).toBeLessThan(
186
- relativeLuminance(runtime["--color-thread-canvas"]),
187
- );
200
+ if (platform === "ios") {
201
+ expect(relativeLuminance(sidebar)).toBeLessThan(
202
+ relativeLuminance(runtime["--color-thread-canvas"]),
203
+ );
204
+ }
205
expect(contrastRatio(chrome, runtime["--color-screen"])).toBeGreaterThanOrEqual(1.06);
206
const foregroundRoles =
207
platform === "android"
apps/mobile/src/lib/mobileThemeVariables.test.ts
+2
-2
@@ -24,7 +24,7 @@ describe("mobile theme runtime variables", () => {
24
});
25
26
it.each(MOBILE_THEME_IDS)(
27
- "keeps %s colors on Android with an opaque Material frame",
27
+ "uses a screen-colored %s sidebar beneath an opaque Android frame",
28
(themeId) => {
29
for (const appearance of ["light", "dark"] as const) {
30
const base = getMobileThemeVariables(
@@ -43,6 +43,7 @@ describe("mobile theme runtime variables", () => {
43
1,
44
),
45
"--color-header-foreground": base["--color-drawer-foreground"],
46
+ "--color-drawer": base["--color-screen"],
47
});
48
expect(android["--color-header"]).toMatch(/^rgba\(\d+, \d+, \d+, 1\)$/);
49
}
@@ -76,7 +77,6 @@ describe("mobile theme runtime variables", () => {
77
expect(ios["--color-header-foreground"]).toBe(ios["--color-drawer-foreground"]);
78
} else {
79
expect(ios).toEqual(getMobileThemeVariables("t3-code", appearance));
79
- expect(ios["--color-drawer"]).toBe(android["--color-drawer"]);
80
expect(ios["--color-drawer"]).toBe("#000000");
81
expect(ios["--color-thread-canvas"]).toBe("#0a0a0a");
82
}
apps/mobile/src/lib/mobileThemeVariables.ts
+1
@@ -48,5 +48,6 @@ export function getMobileThemeRuntimeVariables(
48
...variables,
49
"--color-header": frame,
50
"--color-header-foreground": variables["--color-drawer-foreground"],
51
+ "--color-drawer": variables["--color-screen"],
52
};
53
}