feat: Enhance result display by formatting content with line breaks
This commit is contained in:
parent
b6104aa802
commit
cca4002e16
1 changed files with 6 additions and 1 deletions
|
|
@ -83,7 +83,12 @@ export default function TXT({ onHover }: TXTProps) {
|
||||||
<DialogHeader>
|
<DialogHeader>
|
||||||
<DialogTitle>비밀.txt</DialogTitle>
|
<DialogTitle>비밀.txt</DialogTitle>
|
||||||
<DialogDescription>
|
<DialogDescription>
|
||||||
{content}
|
{content.split('\n').map((line, idx) => (
|
||||||
|
<span key={idx}>
|
||||||
|
{line}
|
||||||
|
<br />
|
||||||
|
</span>
|
||||||
|
))}
|
||||||
</DialogDescription>
|
</DialogDescription>
|
||||||
</DialogHeader>
|
</DialogHeader>
|
||||||
<DialogFooter>
|
<DialogFooter>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue