Browse Source

fix: background

Tienson Qin 4 years ago
parent
commit
ec55e88810

+ 1 - 1
src/main/frontend/components/settings.cljs

@@ -378,4 +378,4 @@
               (ui/button (t :user/delete-your-account)
                          :on-click (fn []
                                      (ui-handler/toggle-settings-modal!)
-                                     (js/setTimeout #(state/set-modal! delete-account-confirm))))]]]])]])))
+                                     (js/setTimeout #(state/set-modal! delete-account-confirm))))]]]])]])))

+ 1 - 5
src/main/frontend/components/sidebar.css

@@ -53,12 +53,8 @@
 }
 
 .settings-modal {
-  background-color: var(--ls-primary-background-color);
-
   max-height: 80vh;
-  overflow: auto;
-  margin: -25px;
-  padding: 20px;
+  overflow-y: auto;
 
   @screen sm {
     width: 768px;

+ 1 - 1
src/main/frontend/handler/web/nfs.cljs

@@ -178,7 +178,7 @@
   (when-not (util/electron?)
     (fn [close-fn]
       [:div
-       [:p.text-gray-700
+       [:p
         "Grant native filesystem permission for directory: "
         [:b (config/get-local-dir repo)]]
        (ui/button

+ 3 - 2
src/main/frontend/ui.cljs

@@ -425,7 +425,7 @@
 
 (rum/defc modal-panel
   [panel-content transition-state close-fn]
-  [:div.ui__modal-panel.transform.transition-all.sm:min-w-lg.sm.p-6
+  [:div.ui__modal-panel.transform.transition-all.sm:min-w-lg.sm
    {:class (case transition-state
              "entering" "ease-out duration-300 opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"
              "entered" "ease-out duration-300 opacity-100 translate-y-0 sm:scale-100"
@@ -444,7 +444,8 @@
         :stroke-linejoin "round"
         :stroke-linecap  "round"}]]]]
 
-   (panel-content close-fn)])
+   [:div.panel-content
+    (panel-content close-fn)]])
 
 (rum/defc modal < rum/reactive
   (mixins/event-mixin

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

@@ -66,7 +66,11 @@
   }
 
   &-panel {
-    @apply relative rounded-md p-8 shadow-xl;
+      @apply relative rounded-md shadow-xl;
+      background: var(--ls-secondary-background-color);
+      .panel-content {
+          padding: 2rem;
+      }
   }
 
   &-close {