Skip to content

Commit 2c1ac23

Browse files
carpe-diemclaude
andauthored
fix(mobile): stop showing a task's project twice (#101)
* fix(mobile): stop showing a task's project twice Each row drew a coloured left border *and* a dot of the same colour after the title. Two marks for one fact, and the border also pushed rows with a project 3px narrower than rows without one, so a mixed list didn't line up. The dot stays: it sits with the title it describes, and it's what the extension uses too. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> * fix(mobile): move the comment out of the return expression A JSX comment before the root element makes two top-level expressions, so the file didn't parse. Caught by typecheck after pushing, not before. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
1 parent fc35ee3 commit 2c1ac23

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

mobile/components/TaskRow.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,11 @@ export function TaskRow({ title, ticket, meta, status, projectColor, onPress, on
2020
const resolved = isResolvedStatus(status);
2121
const dotColor = STATUS_DOT_COLOR[status];
2222

23+
// The project is shown once, by the dot after the title. A left border in
24+
// the same colour said the same thing twice, and its extra padding made
25+
// rows with a project sit 3px narrower than rows without one.
2326
return (
24-
<View style={[styles.row, projectColor && { borderLeftWidth: 3, borderLeftColor: projectColor, paddingLeft: 9 }]}>
27+
<View style={styles.row}>
2528
<Pressable
2629
style={[styles.statusDot, { borderColor: dotColor }, status !== 'todo' && { backgroundColor: dotColor }]}
2730
onPress={onStatusPress}

0 commit comments

Comments
 (0)