Enhance NoteCard interactivity and add favicon support

- Added `onMouseEnter` and `onMouseLeave` handlers to stop event propagation in `NoteCard`.
- Updated the `NoteCard` container to include a `cursor-pointer` class.
- Integrated favicon links in `index.html` for better brand recognition.
This commit is contained in:
2025-10-03 14:14:22 +01:00
parent 47e56282ef
commit 42394c7e0c
3 changed files with 7 additions and 1 deletions

BIN
favicon.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 485 KiB

View File

@@ -4,6 +4,8 @@
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Nostrly App</title>
<link rel="icon" type="image/x-icon" href="/favicon.ico" />
<link rel="shortcut icon" type="image/x-icon" href="/favicon.ico" />
</head>
<body>
<div id="root"></div>

View File

@@ -220,7 +220,11 @@ const NoteCard: React.FC<NoteCardProps> = ({ event, userMetadata }) => {
const repostedEvent = getRepostedEvent()
return (
<div className="p-4 hover:bg-black/10 transition-colors">
<div
className="p-4 hover:bg-black/10 cursor-pointer transition-colors"
onMouseEnter={(e) => e.stopPropagation()}
onMouseLeave={(e) => e.stopPropagation()}
>
{/* Header */}
<div className="flex items-center justify-between mb-3">
<div className="flex items-center space-x-3">