moshaorui 4 månader sedan
förälder
incheckning
9e3b3c3199
1 ändrade filer med 22 tillägg och 3 borttagningar
  1. 22 3
      resources/views/admin/pages-custom/ace.blade.php

+ 22 - 3
resources/views/admin/pages-custom/ace.blade.php

@@ -125,6 +125,24 @@
     .selected-row {
         background-color: rgba(221, 251, 239, 0.56);
     }
+    #templateLogTable {
+        max-height: 550px; /* 最大高度 */
+        overflow-y: auto; /* 垂直方向滚动 */
+        display: block; /* 表格需要设置为块级元素以支持滚动 */
+    }
+    #templateLogTableBody {
+        display: block; /* 表格需要设置为块级元素以支持滚动 */
+        width: 100%;
+    }
+    #templateLogTableBody tr {
+        display: block; /* 表格需要设置为块级元素以支持滚动 */
+        width: 100%;
+    }
+    #templateLogTableBody tr td{
+        display: block; /* 表格需要设置为块级元素以支持滚动 */
+        width: 90%;
+    }
+
 </style>
 </style>
 
@@ -211,14 +229,14 @@
             <div class="modal-body" style="height: 600px;">
                 <div class="row" style="height: 100%;">
                     <!-- 左侧显示 Previous Content -->
-                    <div class="col-md-8">
+                    <div class="col-md-9">
                         <h5>Content</h5>
                         <textarea id="contentDetails" style="height: 550px; overflow-y: auto; border: 1px solid #ededed; padding: 10px;width: 100%;"></textarea>
                     </div>
                     <!-- 右侧显示 Version 和 Created At 列表 -->
-                    <div class="col-md-4">
+                    <div class="col-md-3">
                         <h5>Version</h5>
-                        <table class="table table-condensed table-hover">
+                        <table class="table table-condensed table-hover" id="templateLogTable">
                             <tbody id="templateLogTableBody">
                             <!-- 动态生成的列表 -->
                             </tbody>
@@ -595,6 +613,7 @@
                     layer.close(loadingIndex);
                     $('#contentDetails').html(data.previous_content);
                     $("#templateLogId").val(data.id);
+                    $("#templateVersion").val(data.version);
                 },
                 error: function(error) {
                     layer.close(loadingIndex);