Skip to content

Commit 0396fcf

Browse files
authored
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 <[email protected]>
1 parent a104864 commit 0396fcf

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

templates/admin/notice.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@
7777
<i class="close icon"></i>
7878
<div class="header">{{$.i18n.Tr "admin.notices.view_detail_header"}}</div>
7979
<div class="content">
80-
<p></p>
80+
<pre></pre>
8181
</div>
8282
</div>
8383
{{template "base/footer" .}}

web_src/js/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2019,7 +2019,7 @@ function initAdmin() {
20192019

20202020
// Attach view detail modals
20212021
$('.view-detail').on('click', function () {
2022-
$detailModal.find('.content p').text($(this).data('content'));
2022+
$detailModal.find('.content pre').text($(this).data('content'));
20232023
$detailModal.modal('show');
20242024
return false;
20252025
});

0 commit comments

Comments
 (0)