@@ -15,15 +15,17 @@ function TransactionPreviewSkeletonView({transactionPreviewWidth}: TransactionPr
1515 const styles = useThemeStyles ( ) ;
1616
1717 const isWidthANumber = typeof transactionPreviewWidth === 'number' ;
18- const width = isWidthANumber ? transactionPreviewWidth - styles . p4 . padding * 2 : transactionPreviewWidth ;
18+ const widthOfEntireSkeleton = isWidthANumber ? transactionPreviewWidth - styles . p4 . padding * 2 : transactionPreviewWidth ;
1919 const height = variables . transactionPreviewSkeletonHeight ;
20+ const widthOfTheLeftSkeleton = 120 ;
21+ const widthOfTheRightSkeleton = 68 ;
2022
2123 return (
22- < View style = { [ styles . p4 , styles . mtn1 ] } >
24+ < View style = { [ styles . p4 , styles . mtn1 , styles . justifyContentBetween , { width : widthOfEntireSkeleton } ] } >
2325 < SkeletonViewContentLoader
2426 testID = { TransactionPreviewSkeletonView . displayName }
2527 animate
26- width = { width }
28+ width = { widthOfTheLeftSkeleton }
2729 height = { height }
2830 backgroundColor = { theme . skeletonLHNIn }
2931 foregroundColor = { theme . skeletonLHNOut }
@@ -37,7 +39,7 @@ function TransactionPreviewSkeletonView({transactionPreviewWidth}: TransactionPr
3739 < Rect
3840 x = "0"
3941 y = "24"
40- width = "120"
42+ width = { widthOfTheLeftSkeleton }
4143 height = "20"
4244 />
4345 < Rect
@@ -50,17 +52,17 @@ function TransactionPreviewSkeletonView({transactionPreviewWidth}: TransactionPr
5052 { /* This skeleton inverts the progress bar, which should be on the right,
5153 so we don't need to know the width of the component to calculate it - works with percentages.
5254 */ }
53- < View style = { [ styles . r0 , styles . b0 , styles . p4 , styles . mtn1 , styles . pAbsolute , styles . mirror ] } >
55+ < View style = { [ styles . r0 , styles . b0 , styles . p4 , styles . mtn1 , styles . pAbsolute ] } >
5456 < SkeletonViewContentLoader
55- width = { width }
57+ width = { widthOfTheRightSkeleton }
5658 height = { height }
5759 foregroundColor = { theme . skeletonLHNOut }
5860 backgroundColor = { theme . skeletonLHNIn }
5961 >
6062 < Rect
6163 x = "0"
6264 y = "24"
63- width = "68"
65+ width = { widthOfTheRightSkeleton }
6466 height = "20"
6567 />
6668 </ SkeletonViewContentLoader >
0 commit comments