mirror of https://github.com/logseq/logseq
fix: spacing of color buttons
parent
40632a1a78
commit
46af6b3b15
|
@ -158,14 +158,14 @@
|
||||||
(let [format (:block/format block)]
|
(let [format (:block/format block)]
|
||||||
[:.menu-links-wrapper
|
[:.menu-links-wrapper
|
||||||
[:div.flex.flex-row.justify-between.py-1.px-2.items-center
|
[: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]
|
(for [color ui/block-background-colors]
|
||||||
[:a.m-2.shadow-sm
|
[:a.shadow-sm
|
||||||
{:title (t (keyword "color" color))
|
{:title (t (keyword "color" color))
|
||||||
:on-click (fn [_e]
|
:on-click (fn [_e]
|
||||||
(editor-handler/set-block-property! block-id "background-color" color))}
|
(editor-handler/set-block-property! block-id "background-color" color))}
|
||||||
[:div.heading-bg {:style {:background-color (str "var(--color-" color "-500)")}}]])
|
[:div.heading-bg {:style {:background-color (str "var(--color-" color "-500)")}}]])
|
||||||
[:a.m-2.shadow-sm
|
[:a.shadow-sm
|
||||||
{:title (t :remove-background)
|
{:title (t :remove-background)
|
||||||
:on-click (fn [_e]
|
:on-click (fn [_e]
|
||||||
(editor-handler/remove-block-property! block-id "background-color"))}
|
(editor-handler/remove-block-property! block-id "background-color"))}
|
||||||
|
|
Loading…
Reference in New Issue