Skip to content

Commit 84cc97d

Browse files
committed
fix: pre tag background color adjustment, remove the background color of the quoted content
1 parent 89df65c commit 84cc97d

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

ui/src/components/Editor/Viewer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ const Index = ({ value }, ref) => {
7878
<ImgViewer>
7979
<div
8080
ref={previewRef}
81-
className="preview-wrap position-relative p-3 bg-light rounded text-break text-wrap mt-2 fmt"
81+
className="preview-wrap position-relative p-3 rounded text-break text-wrap mt-2 fmt"
8282
dangerouslySetInnerHTML={{ __html: html }}
8383
/>
8484
</ImgViewer>

ui/src/index.scss

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -247,17 +247,16 @@ img[src=''] {
247247
}
248248
}
249249
pre {
250-
background-color: var(--an-e9ecef);
250+
background-color: var(--bs-gray-100);
251251
border-radius: 0.25rem;
252252
padding: 1rem;
253253
max-height: 38rem;
254-
white-space: normal;
254+
white-space: pre-wrap;
255255
}
256256
blockquote {
257257
border-left: 0.25rem solid #ced4da;
258258
padding: 1rem;
259259
color: #6c757d;
260-
background-color: var(--an-e9ecef);
261260
p {
262261
color: var(--bs-body-color);
263262
}

0 commit comments

Comments
 (0)