|
|
|
|
@ -12,6 +12,7 @@ import NoteStats from '../NoteStats'
@@ -12,6 +12,7 @@ import NoteStats from '../NoteStats'
|
|
|
|
|
import ParentNotePreview from '../ParentNotePreview' |
|
|
|
|
import UserAvatar from '../UserAvatar' |
|
|
|
|
import Username from '../Username' |
|
|
|
|
import Collapsible from '../Collapsible' |
|
|
|
|
|
|
|
|
|
export default function ReplyNote({ |
|
|
|
|
event, |
|
|
|
|
@ -35,10 +36,12 @@ export default function ReplyNote({
@@ -35,10 +36,12 @@ export default function ReplyNote({
|
|
|
|
|
|
|
|
|
|
return ( |
|
|
|
|
<div |
|
|
|
|
className={`flex space-x-2 items-start px-4 py-3 border-b transition-colors duration-500 clickable ${highlight ? 'bg-primary/50' : ''}`} |
|
|
|
|
className={`pb-3 border-b transition-colors duration-500 clickable ${highlight ? 'bg-primary/50' : ''}`} |
|
|
|
|
onClick={() => push(toNote(event))} |
|
|
|
|
> |
|
|
|
|
<UserAvatar userId={event.pubkey} size="small" className="shrink-0" /> |
|
|
|
|
<Collapsible threshold={600} collapsedHeight={400}> |
|
|
|
|
<div className="flex space-x-2 items-start px-4 pt-3"> |
|
|
|
|
<UserAvatar userId={event.pubkey} className="shrink-0 h-8 w-8" /> |
|
|
|
|
<div className="w-full overflow-hidden"> |
|
|
|
|
<div className="flex items-start justify-between gap-2"> |
|
|
|
|
<div className="flex gap-2 items-center flex-1"> |
|
|
|
|
@ -64,10 +67,7 @@ export default function ReplyNote({
@@ -64,10 +67,7 @@ export default function ReplyNote({
|
|
|
|
|
/> |
|
|
|
|
)} |
|
|
|
|
{show ? ( |
|
|
|
|
<> |
|
|
|
|
<Content className="mt-2" event={event} /> |
|
|
|
|
<NoteStats className="mt-2" event={event} displayTopZapsAndLikes /> |
|
|
|
|
</> |
|
|
|
|
) : ( |
|
|
|
|
<Button |
|
|
|
|
variant="outline" |
|
|
|
|
@ -79,5 +79,8 @@ export default function ReplyNote({
@@ -79,5 +79,8 @@ export default function ReplyNote({
|
|
|
|
|
)} |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</Collapsible> |
|
|
|
|
{show && <NoteStats className="ml-14 mr-4 mt-2" event={event} displayTopZapsAndLikes />} |
|
|
|
|
</div> |
|
|
|
|
) |
|
|
|
|
} |
|
|
|
|
|