Skip to content

Commit

Permalink
fix: background
Browse files Browse the repository at this point in the history
  • Loading branch information
tiensonqin committed Mar 8, 2021
1 parent 126902b commit ec55e88
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/main/frontend/components/settings.cljs
Expand Up @@ -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))))]]]])]])))
6 changes: 1 addition & 5 deletions src/main/frontend/components/sidebar.css
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/main/frontend/handler/web/nfs.cljs
Expand Up @@ -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
Expand Down
5 changes: 3 additions & 2 deletions src/main/frontend/ui.cljs
Expand Up @@ -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"
Expand All @@ -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
Expand Down
6 changes: 5 additions & 1 deletion src/main/frontend/ui.css
Expand Up @@ -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 {
Expand Down

0 comments on commit ec55e88

Please sign in to comment.