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:
BIN
favicon.ico
Normal file
BIN
favicon.ico
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 485 KiB |
@@ -4,6 +4,8 @@
|
|||||||
<meta charset="UTF-8" />
|
<meta charset="UTF-8" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
<title>Nostrly App</title>
|
<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>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div id="root"></div>
|
<div id="root"></div>
|
||||||
|
|||||||
@@ -220,7 +220,11 @@ const NoteCard: React.FC<NoteCardProps> = ({ event, userMetadata }) => {
|
|||||||
const repostedEvent = getRepostedEvent()
|
const repostedEvent = getRepostedEvent()
|
||||||
|
|
||||||
return (
|
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 */}
|
{/* Header */}
|
||||||
<div className="flex items-center justify-between mb-3">
|
<div className="flex items-center justify-between mb-3">
|
||||||
<div className="flex items-center space-x-3">
|
<div className="flex items-center space-x-3">
|
||||||
|
|||||||
Reference in New Issue
Block a user