+
diff --git a/web_src/js/index.js b/web_src/js/index.js
index 32265748a5..fa32c64c33 100644
--- a/web_src/js/index.js
+++ b/web_src/js/index.js
@@ -1862,7 +1862,8 @@ function initAdmin() {
// Attach view detail modals
$('.view-detail').on('click', function () {
- $detailModal.find('.content pre').text($(this).data('content'));
+ $detailModal.find('.content pre').text($(this).parents('tr').find('.notice-description').text());
+ $detailModal.find('.sub.header').text($(this).parents('tr').find('.notice-created-time').text());
$detailModal.modal('show');
return false;
});
diff --git a/web_src/less/_admin.less b/web_src/less/_admin.less
index 5fb0712368..9184ed76ef 100644
--- a/web_src/less/_admin.less
+++ b/web_src/less/_admin.less
@@ -75,4 +75,21 @@
white-space: pre-wrap;
word-wrap: break-word;
}
+
+ #notice-table {
+ .notice-description {
+ @media only screen and (max-width: 767px) {
+ max-width: 80vw;
+ }
+ @media only screen and (max-width: 991px) and (min-width: 768px) {
+ max-width: 360px;
+ }
+ @media only screen and (min-width: 992px) and (max-width: 1199.98px) {
+ max-width: 510px;
+ }
+ @media only screen and (min-width: 1200px) {
+ max-width: 640px;
+ }
+ }
+ }
}