The best way to control Claude Code, Codex and more from any computer or phone
fix(mobile): the open button no longer covers inline page headings (#25858)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: maria-rcks <maria@kuuro.net> Co-authored-by: SAPHID <saphid@users.noreply.github.com> Co-authored-by: Julius Marminge <julius0216@outlook.com>
Alex Southwell committed
Nov 14, 2026 at 20:44 UTC
4121b30f78cd68c8aa033c949075ffcd9832be97
1 file changed
+30
-27
apps/mobile/src/features/threads/HtmlRenderWebView.tsx
+30
-27
@@ -22,10 +22,11 @@ import { useAppearancePreferences } from "../settings/appearance/AppearancePrefe
22
import { webViewDecelerationRate } from "../../lib/webViewDecelerationRate";
23
24
const ROW_BOTTOM_MARGIN = 8;
25
+const ACTION_ROW_HEIGHT = 32;
26
const FULL_SCREEN_GUTTER = 16;
27
28
export function htmlRenderRowHeight(frameHeight: number) {
28
- return frameHeight + ROW_BOTTOM_MARGIN;
29
+ return ACTION_ROW_HEIGHT + frameHeight + ROW_BOTTOM_MARGIN;
30
}
31
32
function useHtmlRenderTheme() {
@@ -213,6 +214,34 @@ export function ThreadHtmlRender(props: {
214
215
return (
216
<View style={{ marginBottom: ROW_BOTTOM_MARGIN }}>
217
+ <View style={{ height: ACTION_ROW_HEIGHT }} className="flex-row items-start justify-end">
218
+ {uri !== null && !failed ? (
219
+ <Pressable
220
+ accessibilityRole="button"
221
+ accessibilityLabel={`Open ${title}`}
222
+ hitSlop={8}
223
+ className="h-7 w-7 items-center justify-center rounded-full border border-border/60 bg-card/80"
224
+ onPress={() =>
225
+ navigation.navigate("ThreadAttachment", {
226
+ environmentId: String(props.environmentId),
227
+ threadId: String(props.threadId),
228
+ attachmentId,
229
+ name: fileName,
230
+ mimeType: "text/html",
231
+ sizeBytes: "0",
232
+ htmlRender: "1",
233
+ })
234
+ }
235
+ >
236
+ <SymbolView
237
+ name="arrow.up.left.and.arrow.down.right"
238
+ size={12}
239
+ tintColor={props.iconColor}
240
+ type="monochrome"
241
+ />
242
+ </Pressable>
243
+ ) : null}
244
+ </View>
245
<View style={{ height }}>
246
{uri !== null && !failed ? (
247
<HtmlRenderWebView
@@ -240,32 +269,6 @@ export function ThreadHtmlRender(props: {
269
<AppActivityIndicator />
270
</View>
271
)}
243
- {uri !== null && !failed ? (
244
- <Pressable
245
- accessibilityRole="button"
246
- accessibilityLabel={`Open ${title}`}
247
- hitSlop={8}
248
- className="absolute right-1.5 top-1.5 h-7 w-7 items-center justify-center rounded-full border border-border/60 bg-card/80"
249
- onPress={() =>
250
- navigation.navigate("ThreadAttachment", {
251
- environmentId: String(props.environmentId),
252
- threadId: String(props.threadId),
253
- attachmentId,
254
- name: fileName,
255
- mimeType: "text/html",
256
- sizeBytes: "0",
257
- htmlRender: "1",
258
- })
259
- }
260
- >
261
- <SymbolView
262
- name="arrow.up.left.and.arrow.down.right"
263
- size={12}
264
- tintColor={props.iconColor}
265
- type="monochrome"
266
- />
267
- </Pressable>
268
- ) : null}
272
</View>
273
</View>
274
);