dever 6 years ago
parent
commit
c608b45d86
1 changed files with 6 additions and 1 deletions
  1. 6 1
      src/Lib/Input.php

+ 6 - 1
src/Lib/Input.php

@@ -387,7 +387,12 @@ class Input
         $html = '';
         if (isset($param['editor'])) {
             $width = '70%';
-            $html .= '<div class="layui-col-lg6" style="display:inline;position: absolute;left: 740px;"><div><label style="font-size:14px;font-weight:bold;" class="">'.$param['editor']['name'].'</label></div><div>';
+            if (layadmin()) {
+                $left = '740px';
+            } else {
+                $left = '766px';
+            }
+            $html .= '<div class="layui-col-lg6" style="display:inline;position: absolute;left: '.$left.';"><div><label style="font-size:14px;font-weight:bold;" class="">'.$param['editor']['name'].'</label></div><div>';
 
             foreach ($param['editor']['button'] as $k => $v) {
                 if (isset($v['type'])) {