scroll to individual screenshots

This commit is contained in:
Simon Knott 2024-12-13 16:21:15 +01:00
parent aa49ca7e88
commit d098a57963
No known key found for this signature in database
GPG key ID: 8CEDC00028084AEC

View file

@ -107,12 +107,12 @@ export const TestResultView: React.FC<{
{!!screenshots.length && <Anchor id={screenshotAnchors}><AutoChip header='Screenshots' revealOnAnchorId={screenshotAnchors}>
{screenshots.map((a, i) => {
return <div key={`screenshot-${i}`}>
return <Anchor key={`screenshot-${i}`} id={`attachment-${a.name}`}>
<a href={a.path}>
<img className='screenshot' src={a.path} />
</a>
<AttachmentLink attachment={a}></AttachmentLink>
</div>;
</Anchor>;
})}
</AutoChip></Anchor>}