The best way to control Claude Code, Codex and more from any computer or phone
Mirrored from https://github.com/Camo67/t3code.git
Synced Nov 22, 15:45 UTC
fix(mobile): scale and align thread list icons (#25668)
Alex committed
Oct 26, 2026 at 19:39 UTC
5127de8c29ede39fc567337cebc4726fbaa16b63
1 file changed
+13
-13
apps/mobile/src/features/threads/thread-list-v2-items.tsx
+13
-13
@@ -66,15 +66,10 @@ import {
66
import { QueuedMessageIcon } from "./queued-message-icon";
67
import { shouldRecedeThreadRow } from "./thread-row-emphasis";
68
import { ThreadSearchMatchExcerpt } from "./thread-search-match";
69
+import { useScaledTextRole } from "../settings/appearance/useScaledTextRole";
70
import { PullRequestGlyph } from "../pull-requests/pullRequestGlyphs";
71
import { pullRequestStatus } from "../pull-requests/pullRequestStatus";
72
72
-const TITLE_FAVICON_SIZE = 15;
73
-// Centers the favicon on the first line of the text-base title.
74
-const TITLE_FAVICON_OFFSET = 4;
75
-// Lines below the title start where the title text does.
76
-const TITLE_TEXT_INSET = TITLE_FAVICON_SIZE + 8;
77
-
73
interface StatusLabel {
74
readonly label: string;
75
readonly icon: AppSymbolName;
@@ -603,7 +598,12 @@ export const ThreadListV2Row = memo(function ThreadListV2Row(props: {
598
readonly searchQuery?: string;
599
readonly simultaneousSwipeGesture?: ComponentProps<typeof ThreadSwipeable>["simultaneousWith"];
600
}) {
606
- const { width: windowWidth } = useWindowDimensions();
601
+ const { width: windowWidth, fontScale } = useWindowDimensions();
602
+ const titleTypography = useScaledTextRole("body");
603
+ const metadataTypography = useScaledTextRole("label");
604
+ const projectIconSize = titleTypography.fontSize * 1.25 * fontScale;
605
+ const machineIconSize = metadataTypography.fontSize * fontScale;
606
+ const titleLineHeight = titleTypography.lineHeight * fontScale;
607
const {
608
thread,
609
variant,
@@ -995,17 +995,17 @@ export const ThreadListV2Row = memo(function ThreadListV2Row(props: {
995
? `Opens the thread. Swipe left to ${primaryAction.label.toLowerCase()}.`
996
: `Opens the thread. Swipe left for ${primaryAction.label.toLowerCase()} and snooze actions.`;
997
998
- const titleTextInset = props.project ? TITLE_TEXT_INSET : 0;
998
+ const titleTextInset = props.project ? projectIconSize + 8 : 0;
999
const cardContent = (
1000
<>
1001
<View className="flex-row items-start gap-2">
1002
{props.project ? (
1003
- <View style={{ marginTop: TITLE_FAVICON_OFFSET }}>
1003
+ <View className="justify-center" style={{ height: titleLineHeight }}>
1004
<ProjectFavicon
1005
environmentId={thread.environmentId}
1006
faviconPath={props.project.faviconPath}
1007
projectIcon={props.project.projectIcon}
1008
- size={TITLE_FAVICON_SIZE}
1008
+ size={projectIconSize}
1009
projectTitle={props.project.title}
1010
workspaceRoot={props.project.workspaceRoot}
1011
/>
@@ -1023,7 +1023,7 @@ export const ThreadListV2Row = memo(function ThreadListV2Row(props: {
1023
>
1024
{thread.title}
1025
</Text>
1026
- <View className="flex-row items-center gap-1.5" style={{ marginTop: 3 }}>
1026
+ <View className="flex-row items-center gap-1.5" style={{ minHeight: titleLineHeight }}>
1027
{props.hasQueuedMessages ? <QueuedMessageIcon selected={selected} /> : null}
1028
{pinnedRow ? (
1029
<SymbolView
@@ -1134,7 +1134,7 @@ export const ThreadListV2Row = memo(function ThreadListV2Row(props: {
1134
{props.environmentMachine ? (
1135
<EnvironmentMachineSymbol
1136
kind={props.environmentMachine}
1137
- size={11}
1137
+ size={machineIconSize}
1138
tintColorClassName={
1139
selected
1140
? selectedThreadRowColors.mutedIconTintClassName
@@ -1295,7 +1295,7 @@ export const ThreadListV2Row = memo(function ThreadListV2Row(props: {
1295
environmentId={thread.environmentId}
1296
faviconPath={props.project.faviconPath}
1297
projectIcon={props.project.projectIcon}
1298
- size={15}
1298
+ size={projectIconSize}
1299
projectTitle={props.project.title}
1300
workspaceRoot={props.project.workspaceRoot}
1301
/>