Skip to content
This repository has been archived by the owner on Oct 4, 2023. It is now read-only.

[PAY-1621] Reverse order of mobile lineup tile stat icon and number #3759

Merged
merged 1 commit into from
Jul 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions packages/mobile/src/components/lineup-tile/LineupTileStats.tsx
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
4 changes: 2 additions & 2 deletions packages/web/src/components/track/mobile/TrackTile.tsx
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