Skip to content

Commit

Permalink
Fix performer disambiguation styling in select
Browse files Browse the repository at this point in the history
  • Loading branch information
WithoutPants committed Feb 28, 2024
1 parent 2bdf0d9 commit 4999e85
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
10 changes: 5 additions & 5 deletions ui/v2.5/src/components/Performers/PerformerSelect.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ const _PerformerSelect: React.FC<
thisOptionProps = {
...optionProps,
children: (
<span className="react-select-image-option">
<span className="react-select-image-option performer-select-option">
<Link
to={`/performers/${object.id}`}
target="_blank"
Expand Down Expand Up @@ -127,12 +127,12 @@ const _PerformerSelect: React.FC<
thisOptionProps = {
...optionProps,
children: (
<>
<span className="performer-select-value">
<span>{object.name}</span>
{object.disambiguation && (
<span className="performer-disambiguation">{` (${object.disambiguation})`}</span>
)}
</>
</span>
),
};

Expand All @@ -149,12 +149,12 @@ const _PerformerSelect: React.FC<
thisOptionProps = {
...optionProps,
children: (
<>
<span className="performer-select-value">
{object.name}
{object.disambiguation && (
<span className="performer-disambiguation">{` (${object.disambiguation})`}</span>
)}
</>
</span>
),
};

Expand Down
5 changes: 4 additions & 1 deletion ui/v2.5/src/components/Performers/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -221,10 +221,13 @@

.performer-select {
.performer-disambiguation {
color: initial;
white-space: pre;
}

.performer-select-value .performer-disambiguation {
color: initial;
}

.alias {
font-weight: bold;
white-space: pre;
Expand Down

0 comments on commit 4999e85

Please sign in to comment.