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: {