瀏覽代碼

Fixing layout issues with some HTML messages. Please provide feedback (and examples to reproduce) if this causes issues

pdontthink 4 年之前
父節點
當前提交
ccf0957355
共有 2 個文件被更改,包括 12 次插入3 次删除
  1. 11 2
      templates/default/css/default.css
  2. 1 1
      templates/default/read_message_body.tpl

+ 11 - 2
templates/default/css/default.css

@@ -106,13 +106,20 @@ table.table1    td  {
     padding-right: 2px;
 }
 
-table.table2    {
+table.table2 {
     border: 1px solid #ababab /* __COLOR9__ */;
     width: 80%;
     margin-left: auto;
     margin-right: auto;
 }
 
+table.sm_readBody_table2 {
+    border: 1px solid #ababab /* __COLOR9__ */;
+    width: 100%;
+    margin-left: auto;
+    margin-right: auto;
+}
+
 table.table2    td  {
     padding-left: 2px;
     padding-right: 2px;
@@ -979,7 +986,9 @@ div.readHeaders table.spacer {
 }
 
 div.readBody table {
-    width: 100%;
+    /* Some HTML messages don't work well with this,
+       so we're trying it out without -- need feedback
+       width: 100%; */
 }
 
 div.readBody table.table2 tr {

+ 1 - 1
templates/default/read_message_body.tpl

@@ -23,7 +23,7 @@ extract($t);
 if (!empty($plugin_output['read_body_top'])) echo $plugin_output['read_body_top']; 
 ?>
 <div class="readBody">
-<table cellspacing="0" class="table2">
+<table cellspacing="0" class="sm_readBody_table2">
  <tr>
   <td> 
    <?php echo $message_body; ?>