show modal gallery length only if greater than 1
continuous-integration/drone/pr Build is failing Details

This commit is contained in:
Martti Malmi 2023-10-06 08:17:15 +03:00
parent 58ba714d36
commit bf0af2d14e
1 changed files with 1 additions and 1 deletions

View File

@ -59,7 +59,7 @@ export function SpotlightMedia(props: SpotlightMediaProps) {
<div className="spotlight">
<ProxyImg src={image} />
<div className="details">
{idx + 1}/{props.images.length}
{props.images.length > 1 && `${idx + 1}/${props.images.length}`}
<Icon name="x-close" size={24} onClick={props.onClose} />
</div>
{props.images.length > 1 && (