瀏覽代碼

Admin Panel, use flex "gap" instead of "margin" and "padding"

Martin Filser 3 年之前
父節點
當前提交
9367ef8c41
共有 2 個文件被更改,包括 2 次插入3 次删除
  1. 1 2
      client/components/settings/peopleBody.styl
  2. 1 1
      client/components/settings/settingBody.styl

+ 1 - 2
client/components/settings/peopleBody.styl

@@ -22,14 +22,13 @@ table
   .ext-box-left
     display: flex;
     width: 100%
+    gap: 10px
 
   span
     vertical-align: center;
     line-height: 34px;
-    margin-right: 10px;
 
   input, button
-    margin: 0 10px 0 0;
     padding: 0;
 
   button

+ 1 - 1
client/components/settings/settingBody.styl

@@ -21,6 +21,7 @@
     display flex
     padding-top 15px
     height 100%
+    gap: 10px;
 
     .side-menu
       background-color: #f7f7f7;
@@ -54,7 +55,6 @@
               margin-right: 20px
 
     .main-body
-      padding: 0.1em 1em
       -webkit-user-select: text // Safari 3.1+
       -moz-user-select: text // Firefox 2+
       -ms-user-select: text // IE 10+