feat: display the full content of the reply

This commit is contained in:
Anthonyushie
2025-04-06 13:19:58 +01:00
committed by GitHub
parent 864d8c617f
commit 3bb34dae66
2 changed files with 10 additions and 4 deletions

View File

@@ -1,7 +1,5 @@
import { Event } from 'nostr-tools'
import { useTranslation } from 'react-i18next'
import ContentPreview from '../ContentPreview'
import { SimpleUserAvatar } from '../UserAvatar'
export default function Title({ parentEvent }: { parentEvent?: Event }) {
const { t } = useTranslation()
@@ -9,8 +7,6 @@ export default function Title({ parentEvent }: { parentEvent?: Event }) {
return parentEvent ? (
<div className="flex gap-2 items-center w-full">
<div className="shrink-0">{t('Reply to')}</div>
<SimpleUserAvatar userId={parentEvent.pubkey} size="tiny" />
<ContentPreview className="flex-1 w-0 truncate h-5" event={parentEvent} />
</div>
) : (
t('New Note')