From fccc4059233e5918b2ba5c5898435c7061931804 Mon Sep 17 00:00:00 2001 From: Rutika Pawar <183392827+twilight2294@users.noreply.github.com> Date: Tue, 13 May 2025 16:14:29 +0530 Subject: [PATCH 1/7] update style of preview --- .../ReportActionItem/TripRoomPreview.tsx | 36 ++++++++++++++----- 1 file changed, 27 insertions(+), 9 deletions(-) diff --git a/src/components/ReportActionItem/TripRoomPreview.tsx b/src/components/ReportActionItem/TripRoomPreview.tsx index 616bbfd8bd9e..679b794f5e9e 100644 --- a/src/components/ReportActionItem/TripRoomPreview.tsx +++ b/src/components/ReportActionItem/TripRoomPreview.tsx @@ -83,15 +83,33 @@ function ReservationView({reservation, onPress}: ReservationViewProps) { const endName = reservation.type === CONST.RESERVATION_TYPE.FLIGHT ? reservation.end.shortName : reservation.end.longName; titleComponent = ( - - {startName} - - {endName} + + + + {startName} + + + + + + + + + + {endName} + + ); } From 87784d4acbccfa52352989f2b8b07833d768b223 Mon Sep 17 00:00:00 2001 From: Rutika Pawar <183392827+twilight2294@users.noreply.github.com> Date: Tue, 13 May 2025 16:15:33 +0530 Subject: [PATCH 2/7] include new style for travel preview --- src/styles/index.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/styles/index.ts b/src/styles/index.ts index ec484c200df4..fd9cab8b5fa8 100644 --- a/src/styles/index.ts +++ b/src/styles/index.ts @@ -1623,6 +1623,12 @@ const styles = (theme: ThemeColors) => alignItems: 'center', }, + travelArrowCenter: { + width: variables.iconSizeSmall + 8, + alignItems: 'center', + justifyContent: 'center', + }, + signInPageGradient: { height: '100%', width: 540, From 2c72d8d08407f85798ae84206394f90a46619b4f Mon Sep 17 00:00:00 2001 From: Rutika Pawar <183392827+twilight2294@users.noreply.github.com> Date: Wed, 14 May 2025 11:00:43 +0530 Subject: [PATCH 3/7] use tripReservationRow --- src/styles/index.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/styles/index.ts b/src/styles/index.ts index fd9cab8b5fa8..4cfb9ca6f291 100644 --- a/src/styles/index.ts +++ b/src/styles/index.ts @@ -5567,6 +5567,13 @@ const styles = (theme: ThemeColors) => justifyContent: 'center', }, + tripReservationRow: { + flexDirection: 'row', + alignItems: 'center', + maxWidth: '50%', + flexShrink: 1, + }, + textLineThrough: { textDecorationLine: 'line-through', }, From 9304d8998603c21c1d6ef2955896e96bb406246a Mon Sep 17 00:00:00 2001 From: Rutika Pawar <183392827+twilight2294@users.noreply.github.com> Date: Wed, 14 May 2025 11:01:08 +0530 Subject: [PATCH 4/7] update style to increase startName and arrow width to 50% --- .../ReportActionItem/TripRoomPreview.tsx | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/src/components/ReportActionItem/TripRoomPreview.tsx b/src/components/ReportActionItem/TripRoomPreview.tsx index 679b794f5e9e..be55f61ddee0 100644 --- a/src/components/ReportActionItem/TripRoomPreview.tsx +++ b/src/components/ReportActionItem/TripRoomPreview.tsx @@ -84,16 +84,15 @@ function ReservationView({reservation, onPress}: ReservationViewProps) { titleComponent = ( - + {/* StartName + Arrow with max 50% width */} + {startName} - - - - + {/* EndName with marginLeft instead of spacer */} + {endName} From 2d6458a957419e8fa09c7d80d4bfcd81885422b3 Mon Sep 17 00:00:00 2001 From: Rutika Pawar <183392827+twilight2294@users.noreply.github.com> Date: Thu, 15 May 2025 22:17:54 +0530 Subject: [PATCH 5/7] Update src/styles/index.ts --- src/styles/index.ts | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/styles/index.ts b/src/styles/index.ts index 4cfb9ca6f291..d5fa3657c5bf 100644 --- a/src/styles/index.ts +++ b/src/styles/index.ts @@ -1623,12 +1623,6 @@ const styles = (theme: ThemeColors) => alignItems: 'center', }, - travelArrowCenter: { - width: variables.iconSizeSmall + 8, - alignItems: 'center', - justifyContent: 'center', - }, - signInPageGradient: { height: '100%', width: 540, From 846ebcbb90c6ef2ae0d98bfc72c5d5fa42c70989 Mon Sep 17 00:00:00 2001 From: Rutika Pawar <183392827+twilight2294@users.noreply.github.com> Date: Tue, 10 Jun 2025 10:03:38 +0000 Subject: [PATCH 6/7] Fix mobile view for trip preview --- .../ReportActionItem/TripRoomPreview.tsx | 35 ++++++++++--------- src/styles/index.ts | 11 ++++++ 2 files changed, 29 insertions(+), 17 deletions(-) diff --git a/src/components/ReportActionItem/TripRoomPreview.tsx b/src/components/ReportActionItem/TripRoomPreview.tsx index be55f61ddee0..021de2a89a39 100644 --- a/src/components/ReportActionItem/TripRoomPreview.tsx +++ b/src/components/ReportActionItem/TripRoomPreview.tsx @@ -83,25 +83,26 @@ function ReservationView({reservation, onPress}: ReservationViewProps) { const endName = reservation.type === CONST.RESERVATION_TYPE.FLIGHT ? reservation.end.shortName : reservation.end.longName; titleComponent = ( - - {/* StartName + Arrow with max 50% width */} + - - {startName} - - + + + {startName} + + + + + - - {/* EndName with marginLeft instead of spacer */} flexShrink: 1, }, + flexShrink: { + flexShrink: 1, + }, + + iconWrapper: { + justifyContent: 'center', + alignItems: 'center', + alignSelf: 'flex-start', // Keeps icon from dropping below + paddingTop: 2, // Adjust slightly for vertical centering + }, + textLineThrough: { textDecorationLine: 'line-through', }, From d02325ef8745a209c18eec5ef83fd460dd5f6a12 Mon Sep 17 00:00:00 2001 From: Rutika Pawar <183392827+twilight2294@users.noreply.github.com> Date: Tue, 10 Jun 2025 10:09:17 +0000 Subject: [PATCH 7/7] remove extra styles --- src/components/ReportActionItem/TripRoomPreview.tsx | 2 +- src/styles/index.ts | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/src/components/ReportActionItem/TripRoomPreview.tsx b/src/components/ReportActionItem/TripRoomPreview.tsx index 021de2a89a39..72707462dc6d 100644 --- a/src/components/ReportActionItem/TripRoomPreview.tsx +++ b/src/components/ReportActionItem/TripRoomPreview.tsx @@ -85,7 +85,7 @@ function ReservationView({reservation, onPress}: ReservationViewProps) { titleComponent = ( - + flexShrink: 1, }, - flexShrink: { - flexShrink: 1, - }, - iconWrapper: { justifyContent: 'center', alignItems: 'center',