+
+ {drop.title && (
+
+ {drop.title}
+
+ )}
+ {drop.author?.handle && (
e.stopPropagation()}
href={`/${drop.author?.handle}`}
- className="tw-text-sm tw-truncate tw-no-underline tw-font-medium tw-text-iron-200 desktop-hover:hover:tw-text-opacity-80 desktop-hover:hover:tw-underline"
+ className="tw-text-xs tw-text-iron-400 tw-mt-0.5 tw-no-underline desktop-hover:hover:tw-underline desktop-hover:hover:tw-text-iron-300 tw-transition-colors tw-duration-150"
>
{drop.author?.handle}
- ) : (
-
- {" "}
-
)}
+ {drop.rank !== undefined && (
+
+ )}
+
-
-
+
-
+
{formatNumberWithCommas(drop.raters_count)}
-
-
-
- {hasUserVoted && (
-
-
-
- Your vote:
-
-
- {isNegativeVote && "-"}
- {formatNumberWithCommas(Math.abs(userVote))}{" "}
-
- {drop.wave.voting_credit_type}
-
-
-
-
- )}
-
+
+ {hasUserVoted && (
+
+ Your vote: {isNegativeVote && "-"}{formatNumberWithCommas(Math.abs(userVote))} {drop.wave.voting_credit_type}
+
+ )}
{canShowVote && (
-
+
+
+
)}
- {/* Voting modal */}
{isMobileScreen ? (
(
)}
);
- },
- (prevProps, nextProps) => {
- // Force re-render when activeSort or animationKey changes
- if (
- prevProps.activeSort !== nextProps.activeSort ||
- prevProps.animationKey !== nextProps.animationKey
- ) {
- return false;
- }
-
- // Otherwise, use shallow comparison for other props
- return (
- prevProps.drop.id === nextProps.drop.id &&
- prevProps.onDropClick === nextProps.onDropClick &&
- prevProps.artFocused === nextProps.artFocused
- );
}
);
diff --git a/components/waves/leaderboard/gallery/WaveLeaderboardGalleryItemVotes.tsx b/components/waves/leaderboard/gallery/WaveLeaderboardGalleryItemVotes.tsx
index c831c4af0a..53e574c07b 100644
--- a/components/waves/leaderboard/gallery/WaveLeaderboardGalleryItemVotes.tsx
+++ b/components/waves/leaderboard/gallery/WaveLeaderboardGalleryItemVotes.tsx
@@ -15,28 +15,21 @@ export default function WaveLeaderboardGalleryItemVotes({
const current = drop.rating ?? 0;
const isPositive = current >= 0;
- // Determine color classes based on variant
const getColorClass = () => {
- if (variant === 'subtle') {
- // More subtle coloring that doesn't draw focus from the artwork
- return isPositive
- ? "tw-text-iron-300"
- : "tw-text-iron-400";
+ if (variant === "subtle") {
+ return "tw-text-iron-100";
}
- // Original bright coloring
return isPositive ? "tw-text-emerald-500" : "tw-text-rose-500";
};
return (
-
-
+
+
{formatNumberWithCommas(current)}
-