Disable spotlight for poll options

fixes #603
This commit is contained in:
2023-07-12 12:30:21 +01:00
parent 10d7c26470
commit e92ac1c850
5 changed files with 34 additions and 12 deletions

View File

@ -114,7 +114,11 @@ export default function Poll(props: PollProps) {
return (
<div key={a[1]} className="flex" onClick={e => zapVote(e, opt)}>
<div className="f-grow">
{opt === voting ? <Spinner /> : <Text content={desc} tags={props.ev.tags} creator={props.ev.pubkey} />}
{opt === voting ? (
<Spinner />
) : (
<Text content={desc} tags={props.ev.tags} creator={props.ev.pubkey} disableMediaSpotlight={true} />
)}
</div>
{showResults && (
<>