diff --git a/src-ui/src/app/components/document-detail/document-detail.component.html b/src-ui/src/app/components/document-detail/document-detail.component.html index 124f4811d..e44d7a713 100644 --- a/src-ui/src/app/components/document-detail/document-detail.component.html +++ b/src-ui/src/app/components/document-detail/document-detail.component.html @@ -379,7 +379,7 @@ } } @case (ContentRenderType.Text) { -
{{previewText}}
+
{{previewText}}
} @case (ContentRenderType.Image) {
diff --git a/src-ui/src/app/components/document-detail/document-detail.component.scss b/src-ui/src/app/components/document-detail/document-detail.component.scss index 860c5722c..c6e3b7448 100644 --- a/src-ui/src/app/components/document-detail/document-detail.component.scss +++ b/src-ui/src/app/components/document-detail/document-detail.component.scss @@ -62,3 +62,7 @@ textarea.rtl { height: 100%; object-fit: contain; } + +.whitespace-preserve { + white-space: preserve; +}