trending notes grid modal

This commit is contained in:
Martti Malmi
2023-12-07 13:56:03 +02:00
parent a1b2966188
commit 55b536233c
2 changed files with 15 additions and 3 deletions

View File

@ -21,7 +21,7 @@ const ImageGridItem = (props: { event: TaggedNostrEvent; onClick: (e: MouseEvent
const noteId = NostrLink.fromEvent(event).encode(CONFIG.eventLinkPrefix);
const myOnClick = (clickEvent: MouseEvent) => {
if (onClick) {
if (onClick && window.innerWidth >= 768) {
onClick(clickEvent);
clickEvent.preventDefault();
}