fix: spacing of color buttons

experiment-on-whiteboard-exporting
Konstantinos Kaloutas 2022-10-14 12:04:14 +03:00 committed by Tienson Qin
parent 6e3a54677d
commit ab0f3b6f5d
1 changed files with 3 additions and 3 deletions

View File

@ -158,14 +158,14 @@
(let [format (:block/format block)]
[:.menu-links-wrapper
[:div.flex.flex-row.justify-between.py-1.px-2.items-center
[:div.flex.flex-row.justify-between.flex-1
[:div.flex.flex-row.justify-between.flex-1.mx-2.mt-2
(for [color ui/block-background-colors]
[:a.m-2.shadow-sm
[:a.shadow-sm
{:title (t (keyword "color" color))
:on-click (fn [_e]
(editor-handler/set-block-property! block-id "background-color" color))}
[:div.heading-bg {:style {:background-color (str "var(--color-" color "-500)")}}]])
[:a.m-2.shadow-sm
[:a.shadow-sm
{:title (t :remove-background)
:on-click (fn [_e]
(editor-handler/remove-block-property! block-id "background-color"))}