Skip to content

Commit 26c0e86

Browse files
Julius Marmingeclaude
andcommitted
refactor(mobile): finish converting compact thread rows to Uniwind classes
The compact thread and pending-task rows still carried inline padding, gap, and pressed-opacity styles after the theme-bridge conversion. Move them to classes (pl-5 pr-[18px] pt-2.5, gap-[3px] pb-2.5, active:opacity-70) so the rows are styled the same way as the rest of the mobile app. Co-Authored-By: Claude Fable 5 <[email protected]>
1 parent 6c5ccb4 commit 26c0e86

1 file changed

Lines changed: 6 additions & 26 deletions

File tree

‎apps/mobile/src/features/threads/thread-list-items.tsx‎

Lines changed: 6 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -330,21 +330,11 @@ export const PendingTaskListRow = memo(function PendingTaskListRow(props: {
330330
accessibilityHint="Opens the queued task for editing"
331331
accessibilityLabel={pendingTask.title}
332332
accessibilityRole="button"
333-
className="bg-screen"
333+
className="bg-screen active:opacity-70"
334334
onPress={() => onSelectPendingTask(pendingTask)}
335-
style={({ pressed }) => ({ opacity: pressed ? 0.7 : 1 })}
336335
>
337-
<View
338-
style={{
339-
paddingLeft: THREAD_LIST_COMPACT_INSET,
340-
paddingRight: 18,
341-
paddingTop: 10,
342-
}}
343-
>
344-
<View
345-
className={props.isLast ? undefined : "border-b border-separator"}
346-
style={{ gap: 3, paddingBottom: 10 }}
347-
>
336+
<View className="pl-5 pr-[18px] pt-2.5">
337+
<View className={cn("gap-[3px] pb-2.5", !props.isLast && "border-b border-separator")}>
348338
<View className="flex-row items-center justify-between gap-2">
349339
<Text className="flex-1 text-lg font-t3-bold text-foreground" numberOfLines={1}>
350340
{pendingTask.title}
@@ -581,24 +571,14 @@ export const ThreadListRow = memo(function ThreadListRow(props: {
581571
accessibilityHint="Swipe left for archive and delete actions"
582572
accessibilityLabel={threadAccessibilityLabel}
583573
accessibilityRole="button"
584-
className="bg-screen"
574+
className="bg-screen active:opacity-70"
585575
onPress={() => {
586576
close();
587577
onSelectThread(thread);
588578
}}
589-
style={({ pressed }) => ({ opacity: pressed ? 0.7 : 1 })}
590579
>
591-
<View
592-
style={{
593-
paddingLeft: THREAD_LIST_COMPACT_INSET,
594-
paddingRight: 18,
595-
paddingTop: 10,
596-
}}
597-
>
598-
<View
599-
className={props.isLast ? undefined : "border-b border-separator"}
600-
style={{ gap: 3, paddingBottom: 10 }}
601-
>
580+
<View className="pl-5 pr-[18px] pt-2.5">
581+
<View className={cn("gap-[3px] pb-2.5", !props.isLast && "border-b border-separator")}>
602582
<View className="flex-row items-center justify-between gap-2">
603583
<Text className="flex-1 text-lg font-t3-bold text-foreground" numberOfLines={1}>
604584
{thread.title}

0 commit comments

Comments
 (0)