Skip to content

Commit 762c60a

Browse files
committed
make card and dialog padding consistent
1 parent 0d7dba8 commit 762c60a

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

src/renderer/attribute/views.cljs

+2-2
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@
203203
{:side "left"
204204
:class "popover-content"
205205
:align "start"}
206-
[:div.p-6
206+
[:div.p-5
207207
[:h2.mb-4.text-lg key]
208208
(when (get-method hierarchy/description key)
209209
[:p (hierarchy/description key)])
@@ -236,7 +236,7 @@
236236
{:sideOffset 5
237237
:class "popover-content"
238238
:align "end"}
239-
[:div.p-6
239+
[:div.p-5
240240
[:h2.mb-4.text-lg tag]
241241
(when-let [description (:description (tool/properties tag))]
242242
[:p description])

src/renderer/dialog/views.cljs

+3-4
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
(defn about
2121
[]
22-
[:div.p-4
22+
[:div.p-5
2323
[:div.flex.gap-3.items-start.pb-2
2424
[:div
2525
[:div [:strong "Version: "] config/version]
@@ -49,7 +49,7 @@
4949
(defn save
5050
[k]
5151
(let [document @(rf/subscribe [::document.s/document k])]
52-
[:div.p-4
52+
[:div.p-5
5353
[:p
5454
"Your changes to " [:strong (:title document)]
5555
" will be lost if you close the document without saving."]
@@ -77,13 +77,12 @@
7777
[:> Dialog/Portal
7878
[:> Dialog/Overlay {:class "backdrop"}]
7979
[:> Dialog/Content
80-
8180
(merge {:class "dialog-content"
8281
:on-key-down #(.stopPropagation %)}
8382
(:attrs (last dialogs)))
8483
(when-let [title (:title (last dialogs))]
8584
[:> Dialog/Title
86-
{:class "text-xl px-4 pt-4"}
85+
{:class "text-xl px-5 pt-5"}
8786
title])
8887
[:> Dialog/Description
8988
{:class "m-0"}

0 commit comments

Comments
 (0)