fix: pre tag background color adjustment, remove the background color of the quoted content

This commit is contained in:
shuai
2025-05-23 15:05:15 +08:00
parent 89df65c884
commit 84cc97dc78
2 changed files with 3 additions and 4 deletions
+1 -1
View File
@@ -78,7 +78,7 @@ const Index = ({ value }, ref) => {
<ImgViewer>
<div
ref={previewRef}
className="preview-wrap position-relative p-3 bg-light rounded text-break text-wrap mt-2 fmt"
className="preview-wrap position-relative p-3 rounded text-break text-wrap mt-2 fmt"
dangerouslySetInnerHTML={{ __html: html }}
/>
</ImgViewer>
+2 -3
View File
@@ -247,17 +247,16 @@ img[src=''] {
}
}
pre {
background-color: var(--an-e9ecef);
background-color: var(--bs-gray-100);
border-radius: 0.25rem;
padding: 1rem;
max-height: 38rem;
white-space: normal;
white-space: pre-wrap;
}
blockquote {
border-left: 0.25rem solid #ced4da;
padding: 1rem;
color: #6c757d;
background-color: var(--an-e9ecef);
p {
color: var(--bs-body-color);
}