Fix select field alias odd spacing (#5218)

* Fix Tag and Alias odd spacing

As Echo6ix brough up the HTML Engine doesn't generate whitespace at the beginning of a string. Modifying it to use ` ` so that the spacing will be correct.

fixes https://github.com/stashapp/stash/issues/4997

* update for performerSelect and studioSelect
This commit is contained in:
Gykes
2024-09-04 18:25:05 -07:00
committed by GitHub
parent 1dac598755
commit 15da2c1f4c
3 changed files with 5 additions and 3 deletions

View File

@@ -140,7 +140,9 @@ const _PerformerSelect: React.FC<
<span> <span>
{name} {name}
{alias && ( {alias && (
<span className="performer-select-alias">{` (${alias})`}</span> <span className="performer-select-alias">
&nbsp;({alias})
</span>
)} )}
</span> </span>
} }

View File

@@ -117,7 +117,7 @@ const _StudioSelect: React.FC<
children: ( children: (
<span className="react-select-image-option"> <span className="react-select-image-option">
<span>{name}</span> <span>{name}</span>
{alias && <span className="alias">{` (${alias})`}</span>} {alias && <span className="alias">&nbsp;({alias})</span>}
</span> </span>
), ),
}; };

View File

@@ -133,7 +133,7 @@ const _TagSelect: React.FC<
</a> </a>
</TagPopover> */} </TagPopover> */}
<span>{name}</span> <span>{name}</span>
{alias && <span className="alias">{` (${alias})`}</span>} {alias && <span className="alias">&nbsp;({alias})</span>}
</span> </span>
</TagPopover> </TagPopover>
), ),