浏览代码

revert panel padding to its original value

leizhe 4 年之前
父节点
当前提交
a366320b8c
共有 2 个文件被更改,包括 2 次插入9 次删除
  1. 1 8
      src/main/frontend/ui.cljs
  2. 1 1
      src/main/frontend/ui.css

+ 1 - 8
src/main/frontend/ui.cljs

@@ -508,14 +508,7 @@
           :stroke-linecap  "round"}]]])]
 
    (when show?
-     [:div {:class (if fullscreen? "" "panel-content")
-            :style (if (or (util/mobile?)
-                           (mobile-util/is-native-platform?))
-                     {:padding-top "2em"
-                      :padding-left "1em"
-                      :padding-right "1em"
-                      :padding-bottom "2em"}
-                     {:padding "2em"})}
+     [:div {:class (if fullscreen? "" "panel-content")}
       (modal-panel-content panel-content close-fn)])])
 
 (rum/defc modal < rum/reactive

+ 1 - 1
src/main/frontend/ui.css

@@ -112,7 +112,7 @@
       overflow-y: auto;
       max-width: 1024px;
       max-height: 85vh;
-      /* padding: 2rem; */
+      padding: 2rem;
     }
   }