summaryrefslogtreecommitdiffstats
path: root/web_src
diff options
context:
space:
mode:
authorwxiaoguang <wxiaoguang@gmail.com>2021-10-23 22:47:38 +0800
committerGitHub <noreply@github.com>2021-10-23 22:47:38 +0800
commit943dc087229aa922503eab7e49f4c63667dbb632 (patch)
tree093cba9ef2897aed1e68219e1b0eb8496faf47b8 /web_src
parent6c49517cbd9d353d2d56d899632f301919818a03 (diff)
downloadgitea-943dc087229aa922503eab7e49f4c63667dbb632.tar.gz
gitea-943dc087229aa922503eab7e49f4c63667dbb632.zip
Fix issue content history problems, improve UI (#17404)
* Improve: make diff result better, make the HTML element fit the full height in the content history diff dialog * Bug fix: when edit the main issue, the poster is wrongly set to the issue poster
Diffstat (limited to 'web_src')
-rw-r--r--web_src/js/features/issue-content-history.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/web_src/js/features/issue-content-history.js b/web_src/js/features/issue-content-history.js
index 3b830f50f8..c71d3789d4 100644
--- a/web_src/js/features/issue-content-history.js
+++ b/web_src/js/features/issue-content-history.js
@@ -12,7 +12,7 @@ function showContentHistoryDetail(issueBaseUrl, commentId, historyId, itemTitleH
if ($dialog.length) return;
$dialog = $(`
-<div class="ui modal content-history-detail-dialog" style="min-height: 50%;">
+<div class="ui modal content-history-detail-dialog">
<i class="close icon inside"></i>
<div class="header">
${itemTitleHtml}
@@ -24,7 +24,7 @@ function showContentHistoryDetail(issueBaseUrl, commentId, historyId, itemTitleH
</div>
</div>
<!-- ".modal .content" style was polluted in "_base.less": "&.modal > .content" -->
- <div class="scrolling content" style="text-align: left;">
+ <div class="scrolling content" style="text-align: left; min-height: 30vh;">
<div class="ui loader active"></div>
</div>
</div>`);