Skip to content

Commit 6cb9beb

Browse files
committed
修复评论区code标签导致headr拉长
1 parent b139bc4 commit 6cb9beb

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

frontend_nuxt/assets/global.css

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,8 +372,12 @@ body {
372372
}
373373
/* 手机端不换行 */
374374
.info-content-text code {
375-
white-space: pre; /* 禁止自动换行 */
375+
white-space: pre-wrap; /*评论里code*/
376376
}
377+
.code-block code {
378+
white-space:pre;/* markdown禁止自动换行 */
379+
}
380+
377381
/* .d2h-diff-table {
378382
font-size: 6px !important;
379383
}

0 commit comments

Comments
 (0)