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>
|
||||
<DialogTitle>비밀.txt</DialogTitle>
|
||||
<DialogDescription>
|
||||
{content}
|
||||
{content.split('\n').map((line, idx) => (
|
||||
<span key={idx}>
|
||||
{line}
|
||||
<br />
|
||||
</span>
|
||||
))}
|
||||
</DialogDescription>
|
||||
</DialogHeader>
|
||||
<DialogFooter>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue