From 95caf2ee9d604b2059e37b8227ced244d04eed92 Mon Sep 17 00:00:00 2001 From: Brennan Benson <79079362+brennanb2025@users.noreply.github.com> Date: Fri, 3 Jul 2026 17:34:44 -0700 Subject: [PATCH] fix(mobile): match diff review line height to desktop diff density (#7276) Co-authored-by: Orca --- mobile/src/components/MobileDiffReviewLine.tsx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/mobile/src/components/MobileDiffReviewLine.tsx b/mobile/src/components/MobileDiffReviewLine.tsx index 74ed24c10..1c1008321 100644 --- a/mobile/src/components/MobileDiffReviewLine.tsx +++ b/mobile/src/components/MobileDiffReviewLine.tsx @@ -92,9 +92,10 @@ export function MobileDiffReviewLine({ ) } +// Row height comes from the 18px code lineHeight alone (no vertical padding or +// minHeight) so mobile diff density matches the desktop diff editor (STA-1239). const styles = StyleSheet.create({ row: { - minHeight: 32, flexDirection: 'row', alignItems: 'stretch', borderBottomWidth: StyleSheet.hairlineWidth, @@ -112,25 +113,24 @@ const styles = StyleSheet.create({ }, prefix: { width: 18, - paddingTop: spacing.sm, textAlign: 'center', color: colors.textMuted, fontFamily: typography.monoFamily, - fontSize: typography.metaSize + fontSize: typography.metaSize, + lineHeight: 18 }, lineNumber: { width: 44, - paddingTop: spacing.sm, paddingRight: spacing.xs, textAlign: 'right', color: colors.textMuted, fontFamily: typography.monoFamily, - fontSize: typography.metaSize + fontSize: typography.metaSize, + lineHeight: 18 }, code: { flex: 1, minWidth: 0, - paddingVertical: spacing.sm, paddingHorizontal: spacing.sm }, codePressed: {