Skip to content

Commit

Permalink
chore: 显示原文时使用 .whitespace-pre-wrap (Chanzhaoyu#779)
Browse files Browse the repository at this point in the history
显示 ChatGPT 输出的原文时保留空格和换行
  • Loading branch information
yilozt authored and Equim-chan committed Mar 22, 2023
1 parent 08084f2 commit 9687b39
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/views/chat/components/Message/style.less
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,14 @@
}

html.dark {

.message-reply {
.whitespace-pre-wrap {
white-space: pre-wrap;
color: var(--n-text-color);
}
}

.highlight pre,
pre {
background-color: #22272e;
Expand Down

0 comments on commit 9687b39

Please sign in to comment.