From 1cc983fb5ba10a16351b0d55a484d19c8ee12acf Mon Sep 17 00:00:00 2001 From: melon-scientist <149206247+melon-scientist@users.noreply.github.com> Date: Sun, 9 Nov 2025 17:33:15 -0700 Subject: [PATCH] Add O-Count to performer page (#6171) --- .../Performers/PerformerDetails/Performer.tsx | 23 ++++++++++++++----- ui/v2.5/src/components/Performers/styles.scss | 21 +++++++++++++++++ .../components/Shared/Rating/RatingStars.tsx | 13 ++++------- 3 files changed, 42 insertions(+), 15 deletions(-) diff --git a/ui/v2.5/src/components/Performers/PerformerDetails/Performer.tsx b/ui/v2.5/src/components/Performers/PerformerDetails/Performer.tsx index ab584e90d..0a1535068 100644 --- a/ui/v2.5/src/components/Performers/PerformerDetails/Performer.tsx +++ b/ui/v2.5/src/components/Performers/PerformerDetails/Performer.tsx @@ -42,6 +42,7 @@ import { import { DetailTitle } from "src/components/Shared/DetailsPage/DetailTitle"; import { ExpandCollapseButton } from "src/components/Shared/CollapseButton"; import { FavoriteIcon } from "src/components/Shared/FavoriteIcon"; +import { SweatDrops } from "src/components/Shared/SweatDrops"; import { AliasList } from "src/components/Shared/DetailsPage/AliasList"; import { HeaderImage } from "src/components/Shared/DetailsPage/HeaderImage"; import { LightboxLink } from "src/hooks/Lightbox/LightboxLink"; @@ -423,12 +424,22 @@ const PerformerPage: React.FC = PatchComponent( - setRating(value)} - clickToRate - withoutContext - /> +
+ setRating(value)} + clickToRate + withoutContext + /> + {!!performer.o_counter && ( + + + + + {performer.o_counter} + + )} +
{!isEditing && ( { + const maybeGetStarRatingNumber = () => { const ratingFraction = getCurrentSelectedRating(); if ( !ratingFraction || (ratingFraction.rating == 0 && ratingFraction.fraction == 0) ) { - return; + return ""; } - return ( - - {ratingFraction.rating + ratingFraction.fraction} - {suffix} - - ); + return ratingFraction.rating + ratingFraction.fraction + suffix; }; const precisionClassName = `rating-stars-precision-${props.precision}`; @@ -252,7 +247,7 @@ export const RatingStars = PatchComponent( {Array.from(Array(max)).map((value, index) => renderRatingButton(index + 1) )} - {maybeRenderStarRatingNumber()} + {maybeGetStarRatingNumber()} ); }