Skip to content

Commit

Permalink
fix: 为 Discuss 添加最低高度 (#742)
Browse files Browse the repository at this point in the history
为了避免使用评论表情时,被评论区当掉一半的bug
  • Loading branch information
Lete114 authored Apr 25, 2022
1 parent f3e910f commit 9bf70de
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions layout/_plugins/comments/discuss/script.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@
let defaultPath = '<%= theme.comments.discuss.path %>';
path = defaultPath || decodeURI(window.location.pathname);
}
const style = document.createElement('style')
style.textContent = '#Discuss .D-comments-wrap{min-height:200px}'
document.head.appendChild(style)
Discuss.init(Object.assign(Object.assign(<%- JSON.stringify(theme.comments.discuss) %>, {
el: '#discuss_container',
path: path,
Expand Down

0 comments on commit 9bf70de

Please sign in to comment.