show modal gallery length only if greater than 1

This commit is contained in:
Martti Malmi 2023-10-06 08:17:15 +03:00
parent 58ba714d36
commit bf0af2d14e

View File

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