mirror of
https://github.com/hzrd149/nostrudel.git
synced 2025-09-18 19:41:48 +02:00
fix bug with blurred images
This commit is contained in:
5
.changeset/silver-keys-fetch.md
Normal file
5
.changeset/silver-keys-fetch.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"nostrudel": patch
|
||||
---
|
||||
|
||||
Fix blured images opening when clicked
|
@@ -9,7 +9,20 @@ const BlurredImage = (props: ImageProps) => {
|
||||
const { isOpen, onOpen } = useDisclosure();
|
||||
return (
|
||||
<Box overflow="hidden">
|
||||
<Image onClick={onOpen} cursor="pointer" filter={isOpen ? "" : "blur(1.5rem)"} {...props} />
|
||||
<Image
|
||||
onClick={
|
||||
!isOpen
|
||||
? (e) => {
|
||||
e.stopPropagation();
|
||||
e.preventDefault();
|
||||
onOpen();
|
||||
}
|
||||
: undefined
|
||||
}
|
||||
cursor="pointer"
|
||||
filter={isOpen ? "" : "blur(1.5rem)"}
|
||||
{...props}
|
||||
/>
|
||||
</Box>
|
||||
);
|
||||
};
|
||||
|
@@ -23,8 +23,6 @@ import { useUserMetadata } from "../hooks/use-user-metadata";
|
||||
import { UserLink } from "./user-link";
|
||||
import { parsePaymentRequest, readablizeSats } from "../helpers/bolt11";
|
||||
import { ExternalLinkIcon, LightningIcon, QrCodeIcon } from "./icons";
|
||||
import lnurlMetadataService from "../services/lnurl-metadata";
|
||||
import { useAsync } from "react-use";
|
||||
import { nip57 } from "nostr-tools";
|
||||
import clientRelaysService from "../services/client-relays";
|
||||
import { getEventRelays } from "../services/event-relays";
|
||||
|
Reference in New Issue
Block a user