feat: Enhance result display by formatting content with line breaks

This commit is contained in:
암냥 2025-12-27 18:20:50 +09:00
commit cca4002e16
No known key found for this signature in database

View file

@ -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>