diff options
author | Baitinq <manuelpalenzuelamerino@gmail.com> | 2024-08-18 20:58:38 +0200 |
---|---|---|
committer | Baitinq <manuelpalenzuelamerino@gmail.com> | 2024-08-18 20:58:38 +0200 |
commit | b7f50cd6b03185c9dfed4d64d8fb1c86b25ea126 (patch) | |
tree | 70cb9632fb95983496f34ee98d17ca5bc8bf7d37 | |
parent | Pages: Home: Show most common files component (diff) | |
download | fs-tracer-frontend-b7f50cd6b03185c9dfed4d64d8fb1c86b25ea126.tar.gz fs-tracer-frontend-b7f50cd6b03185c9dfed4d64d8fb1c86b25ea126.tar.bz2 fs-tracer-frontend-b7f50cd6b03185c9dfed4d64d8fb1c86b25ea126.zip |
Pages: File: Correctly render multiline content
-rw-r--r-- | src/pages/File.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pages/File.tsx b/src/pages/File.tsx index f9f1a73..d82235d 100644 --- a/src/pages/File.tsx +++ b/src/pages/File.tsx @@ -112,7 +112,7 @@ function FileInfo(props: FileInfoProps) { <> <p>Absolute path: {props.file.absolute_path}</p> <p>Timestamp: {props.file.timestamp}</p> - <p>Content: {props.file.contents}</p> + <p style={{ whiteSpace: "pre-wrap" }}>Content: {props.file.contents}</p> <p>ID: {props.file.id}</p> </> ) |