mirror of
https://github.com/PrimalHQ/primal-web-app.git
synced 2024-10-01 17:31:13 +00:00
Fix embedded note content escaping
This commit is contained in:
parent
ac780f455c
commit
72cd3d9d2e
@ -20,6 +20,8 @@ const EmbeddedNote: Component<{ note: PrimalNote, mentionedUsers?: Record<string
|
|||||||
const threadContext = useThreadContext();
|
const threadContext = useThreadContext();
|
||||||
const intl = useIntl();
|
const intl = useIntl();
|
||||||
|
|
||||||
|
let noteContent: HTMLDivElement | undefined;
|
||||||
|
|
||||||
const noteId = () => nip19.noteEncode(props.note.post.id);
|
const noteId = () => nip19.noteEncode(props.note.post.id);
|
||||||
|
|
||||||
const navToThread = () => {
|
const navToThread = () => {
|
||||||
@ -94,12 +96,13 @@ const EmbeddedNote: Component<{ note: PrimalNote, mentionedUsers?: Record<string
|
|||||||
</span>
|
</span>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<div class={styles.noteContent}>
|
<div class={styles.noteContent} ref={noteContent}>
|
||||||
<ParsedNote
|
<ParsedNote
|
||||||
note={props.note}
|
note={props.note}
|
||||||
ignoreMentionedNotes={true}
|
ignoreMentionedNotes={true}
|
||||||
shorten={true}
|
shorten={true}
|
||||||
isEmbeded={true}
|
isEmbeded={true}
|
||||||
|
width={noteContent?.getBoundingClientRect().width}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</>
|
</>
|
||||||
|
Loading…
Reference in New Issue
Block a user