diff options
author | 赵智超 <1012112796@qq.com> | 2020-05-05 23:16:55 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-05 10:16:55 -0500 |
commit | 0396fcf4b54da7c5ff09908e23a16e96dea9cda4 (patch) | |
tree | 3e1e181b53e815e41071e02805936a0ac677eda8 /web_src/js/index.js | |
parent | a104864da251dd9a4ccdc3c8b6a558cab04705b5 (diff) | |
download | gitea-0396fcf4b54da7c5ff09908e23a16e96dea9cda4.tar.gz gitea-0396fcf4b54da7c5ff09908e23a16e96dea9cda4.zip |
Change the style in admin notice content view from <p> to <pre> (#11301)
That's because many notic have more than one lines. So I think
pre is more better to used in here than p
Signed-off-by: a1012112796 <1012112796@qq.com>
Diffstat (limited to 'web_src/js/index.js')
-rw-r--r-- | web_src/js/index.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/web_src/js/index.js b/web_src/js/index.js index 639f36fab7..6ac4a1de5d 100644 --- a/web_src/js/index.js +++ b/web_src/js/index.js @@ -2019,7 +2019,7 @@ function initAdmin() { // Attach view detail modals $('.view-detail').on('click', function () { - $detailModal.find('.content p').text($(this).data('content')); + $detailModal.find('.content pre').text($(this).data('content')); $detailModal.modal('show'); return false; }); |