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
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 5 additions and 3 deletions

View file

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

View file

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

View file

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