Jelajahi Sumber

fix for long dns records

Serghey Rodin 10 tahun lalu
induk
melakukan
6535c5c7d8

+ 20 - 6
web/css/styles.min.css

@@ -679,7 +679,7 @@ input[type="checkbox"] {
 }
 
 .l-menu__item--active {
-  background-color: #fff;
+  //background-color: #fff;
 }
 
 .l-menu__item.l-menu__item--active a {
@@ -687,6 +687,7 @@ input[type="checkbox"] {
   font-size: 10px;
   font-weight: bold;
   text-transform: uppercase;
+  background-color: #fff;
 }
 
 .l-menu {
@@ -699,7 +700,7 @@ input[type="checkbox"] {
   color: #f7f7f7;
   position: relative;
   line-height: 34px;
-  padding: 11px 20px;
+  padding: 11px 18px;
 }
 .l-menu__item a:hover {
   background-color: #f79b44;
@@ -729,6 +730,10 @@ input[type="checkbox"] {
   padding: 11px 12px;
 }
 
+.lang-tw .l-menu__item a {
+  padding: 13px 18px;
+}
+
 .l-profile {
   overflow: hidden;
   float: right;
@@ -759,6 +764,12 @@ input[type="checkbox"] {
 .l-profile__logout:active {
   color: #ffd62e;
 }
+.lang-cn .l-profile__logout {
+  padding: 8px 5px;
+}
+.lang-tw .l-profile__logout {
+  padding: 8px 5px;
+}
 
 
 
@@ -1456,16 +1467,17 @@ div.l-content > div.l-separator:nth-of-type(4) {
 }
 .lang-ru .actions-panel__col a {
   font-size: 11px;
-  line-height: 31px;
-  padding-top: 2px;
+  padding-top: 1px;
 }
 .lang-tw .actions-panel__col a {
   font-size: 15px;
   font-weight: normal;
+  line-height: 29px;
 }
 .lang-ar .actions-panel__col a {
   font-size: 15px;
   font-weight: normal;
+  line-height: 29px;
 }
 
 
@@ -2072,7 +2084,7 @@ div.l-content > div.l-separator:nth-of-type(4) {
   height: 16px;
   overflow: hidden;
   padding-top: 6px;
-  width: 630px;
+  width: 620px;
 }
 
 .vst-ok {
@@ -2157,7 +2169,9 @@ label {
   background-color: #D7F9FF;
   color: #333;
 }
-.vst-input:disabled {
+
+.vst-input:disabled,
+.vst-list:disabled {
   background-color: #ebebeb;
 }
 .vst-input:focus:disabled {

+ 2 - 5
web/templates/admin/list_dns_rec.html

@@ -48,13 +48,10 @@
 
     <div class="l-center units">
 
-    <div class="l-unit-ft">
+    <div class="l-unit">
       <div class="subtitle"><?=__('Listing')?>  <?=htmlentities($_GET['domain'])?></div>
     </div>
 
-    <div class="l-separator"></div>
-    <!-- /.l-separator -->
-
       <?php
         foreach ($data as $key => $value) {
           ++$i;
@@ -103,7 +100,7 @@
         <!-- /.l-unit__col -->
         <div class="l-unit__col l-unit__col--right">
           <div class="l-unit__stats">
-            <div class="clearfix l-unit__stat-col--left small"><b><?=$data[$key]['RECORD']?></b></div>
+            <div class="clearfix l-unit__stat-col--left small"><b><? echo substr($data[$key]['RECORD'], 0, 12); if(strlen($data[$key]['RECORD']) > 12 ) echo '...'; ?></b></div>
             <div class="clearfix l-unit__stat-col--left compact"><b><?=$data[$key]['TYPE']?></b></div>
             <div class="clearfix l-unit__stat-col--left compact"><?=$data[$key]['PRIORITY']?>&nbsp;</div>
             <div class="clearfix l-unit__stat-col--left wide-4"><b><?=htmlspecialchars($data[$key]['VALUE'], ENT_QUOTES, 'UTF-8')?></b></div>

+ 1 - 1
web/templates/user/list_dns_rec.html

@@ -100,7 +100,7 @@
         <!-- /.l-unit__col -->
         <div class="l-unit__col l-unit__col--right">
           <div class="l-unit__stats">
-            <div class="clearfix l-unit__stat-col--left small"><b><?=$data[$key]['RECORD']?></b></div>
+            <div class="clearfix l-unit__stat-col--left small"><b><? echo substr($data[$key]['RECORD'], 0, 14); if(strlen($data[$key]['RECORD']) > 14 ) echo '..'; ?></b></div>
             <div class="clearfix l-unit__stat-col--left compact"><b><?=$data[$key]['TYPE']?></b></div>
             <div class="clearfix l-unit__stat-col--left compact"><?=$data[$key]['PRIORITY']?>&nbsp;</div>
             <div class="clearfix l-unit__stat-col--left wide-4"><b><?=htmlspecialchars($data[$key]['VALUE'], ENT_QUOTES, 'UTF-8')?></b></div>