@devries-cameron20 / t3code-1 / commits / f120c51134
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

fix(mobile): list bullets keep a gap before their text at every text size (#26268)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

Julius Marminge committed Oct 27, 2026 at 20:19 UTC f120c51134c6b5f20b42f51cda84e3e6da681a5f
1 file changed +15 -4
apps/mobile/src/native/EnrichedMarkdownText.tsx
+15 -4
@@ -12,7 +12,7 @@ import {
12 markdownWithTableBreaks,
13 } from "../lib/markdownDocument";
14 import { isValidElement, useMemo, useState, type ReactNode } from "react";
15 -import { Platform, Share, StyleSheet, View } from "react-native";
15 +import { Platform, Share, StyleSheet, useWindowDimensions, View } from "react-native";
16 import {
17 EnrichedMarkdownText,
18 type MarkdownImageBlock,
@@ -35,6 +35,7 @@ import {
35 function enrichedStyle(
36 style: SelectableMarkdownTextProps["textStyle"],
37 dark: boolean,
38 + fontScale: number,
39 ): MarkdownStyle {
40 const monospace = Platform.OS === "ios" ? "Menlo" : "monospace";
41 // Keep the radius modest: iOS clips square table-cell borders without stroking the corner arcs.
@@ -132,7 +133,13 @@ function enrichedStyle(
133 borderWidth: 2,
134 gapWidth: 12,
135 },
135 - list: { ...body, bulletColor: style.mutedColor, markerColor: style.mutedColor, gapWidth: 6 },
136 + list: {
137 + ...body,
138 + bulletColor: style.mutedColor,
139 + markerColor: style.mutedColor,
140 + // The bullet is centred on the gap's edge and scales with the system text size; the gap must too.
141 + gapWidth: 12 * fontScale,
142 + },
143 thematicBreak: { color: style.dividerColor, height: 1, marginTop: 8, marginBottom: 8 },
144 table: {
145 ...body,
@@ -256,9 +263,13 @@ export function MobileEnrichedMarkdownText(props: SelectableMarkdownTextProps) {
263 mimeTypes: { "app.t3.context-fragment": props.contextClipboardFragment! },
264 };
265 }, [props.contextClipboardFragment, props.markdown]);
266 + const { fontScale } = useWindowDimensions();
267 const markdownStyle = useMemo(
260 - () => ({ ...enrichedStyle(props.textStyle, themeAppearance === "dark"), linkVariants }),
261 - [props.textStyle, themeAppearance, linkVariants],
268 + () => ({
269 + ...enrichedStyle(props.textStyle, themeAppearance === "dark", fontScale),
270 + linkVariants,
271 + }),
272 + [props.textStyle, themeAppearance, fontScale, linkVariants],
273 );
274 const renderers = renderImage
275 ? {