Fix: preserve text linebreaks in doc edit (#7908)

This commit is contained in:
shamoon authored and GitHub committed 2024-10-13 10:45:05 -07:00
1 parent 8e61a29137
commit cb617531bc
2 files changed
+5 -1

No files matched your search

@@ -379,7 +379,7 @@
}
}
@case (ContentRenderType.Text) {
<div class="preview-sticky bg-light p-3 overflow-auto" width="100%">{{previewText}}</div>
<div class="preview-sticky bg-light p-3 overflow-auto whitespace-preserve" width="100%">{{previewText}}</div>
}
@case (ContentRenderType.Image) {
<div class="preview-sticky">
@@ -62,3 +62,7 @@ textarea.rtl {
height: 100%;
object-fit: contain;
}
.whitespace-preserve {
white-space: preserve;
}