Skip to content

Commit

Permalink
[PAY-1621] Reverse order of mobile lineup tile stat icon and number (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
dharit-tan committed Jul 17, 2023
1 parent a6927ac commit 9238864
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -165,15 +165,15 @@ export const LineupTileStats = ({
disabled={!repostCount || isReadonly}
onPress={handlePressReposts}
>
<Text style={trackTileStyles.statText}>
{formatCount(repostCount)}
</Text>
<IconRepost
height={spacing(4)}
width={spacing(4)}
fill={neutralLight4}
style={styles.repostStat}
/>
<Text style={trackTileStyles.statText}>
{formatCount(repostCount)}
</Text>
</TouchableOpacity>
<TouchableOpacity
style={[
Expand All @@ -184,15 +184,15 @@ export const LineupTileStats = ({
disabled={!saveCount || isReadonly}
onPress={handlePressFavorites}
>
<Text style={trackTileStyles.statText}>
{formatCount(saveCount)}
</Text>
<IconHeart
style={styles.favoriteStat}
height={spacing(3.5)}
width={spacing(3.5)}
fill={neutralLight4}
/>
<Text style={trackTileStyles.statText}>
{formatCount(saveCount)}
</Text>
</TouchableOpacity>
<View style={[trackTileStyles.statItem]}>
{downloadStatusIndicator}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@
align-items: center;
transform: scale(1);
transition: transform 0.07s ease-in-out;
gap: var(--unit-1);
}

.statItem:active {
Expand Down Expand Up @@ -276,7 +277,6 @@
.favoriteButton {
height: calc(var(--unit) * 3.5);
width: calc(var(--unit) * 3.5);
margin-left: var(--unit-1);
}

.readonly .repostButtonWrapper:hover {
Expand All @@ -286,7 +286,6 @@
.repostButton {
height: var(--unit-4);
width: var(--unit-4);
margin-left: var(--unit-1);
}

.hide {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -388,14 +388,14 @@ const TrackTile = (props: CombinedProps) => {
: undefined
}
>
{formatCount(props.repostCount)}
<RepostButton
iconMode
isMatrixMode={isMatrix}
isDarkMode={darkMode}
className={styles.repostButton}
wrapperClassName={styles.repostButtonWrapper}
/>
{formatCount(props.repostCount)}
</div>
<div
className={cn(styles.statItem, fadeIn, {
Expand All @@ -408,14 +408,14 @@ const TrackTile = (props: CombinedProps) => {
: undefined
}
>
{formatCount(props.saveCount)}
<FavoriteButton
iconMode
isDarkMode={darkMode}
isMatrixMode={isMatrix}
className={styles.favoriteButton}
wrapperClassName={styles.favoriteButtonWrapper}
/>
{formatCount(props.saveCount)}
</div>
</>
)}
Expand Down

0 comments on commit 9238864

Please sign in to comment.