Feature: Display Improvements (#40)

* refactor: improve event rendering logic and add no posts found message

* fix errors
This commit is contained in:
mroxso
2025-02-09 18:26:10 +01:00
committed by GitHub
parent ca8d8fd1ba
commit 5b3246c077
4 changed files with 46 additions and 26 deletions

View File

@@ -22,6 +22,10 @@ interface QuickViewKind20NoteCardProps {
}
const QuickViewKind20NoteCard: React.FC<QuickViewKind20NoteCardProps> = ({ pubkey, text, image, eventId, tags, event, linkToNote }) => {
const {data, isLoading} = useProfile({
pubkey,
});
if (!image) return null;
text = text.replaceAll('\n', ' ');
@@ -29,10 +33,6 @@ const QuickViewKind20NoteCard: React.FC<QuickViewKind20NoteCardProps> = ({ pubke
const { width, height } = extractDimensions(event);
const {data, isLoading} = useProfile({
pubkey,
});
const card = (
<Card className="aspect-square">
<SmallCardContent className="h-full p-0">