fix(ui): style not refresh when toggling option for the fold button position

pull/7492/head
charlie 2022-11-25 14:49:10 +08:00
parent c3ac05181d
commit 0d04e777fc
4 changed files with 16 additions and 6 deletions

View File

@ -1712,11 +1712,7 @@
ref? (:ref? config)
empty-content? (block-content-empty? block)
fold-button-right? (state/enable-fold-button-right?)]
[:div.mr-1.flex.flex-row.items-center.sm:mr-2
{:style {:height 24
:margin-top 0
:float "left"}}
[:div.block-control-wrap.mr-1.flex.flex-row.items-center.sm:mr-2
(when (or (not fold-button-right?) has-child?)
[:a.block-control
{:id (str "control-" uuid)

View File

@ -172,6 +172,11 @@
}
}
.block-control-wrap {
height: 24px;
margin-top: 0;
}
.block-control, .block-control:hover {
text-decoration: none;
cursor: default;
@ -523,6 +528,10 @@ a:hover > .bullet-container {
display: none;
}
.block-children {
border-left: none;
}
.hide-inner-bullet .bullet {
display: none;
}

View File

@ -122,6 +122,11 @@ main.ls-fold-button-on-right {
.page-blocks-inner {
margin-left: 0 !important;
}
.block-control-wrap {
height: unset;
background: transparent;
}
}
.cp__sidebar-left-layout {

View File

@ -27,7 +27,7 @@
ks (if (vector? k) k [k])
new-result (rewrite/assoc-in result ks v)
new-content (str new-result)]
(file-handler/set-file-content! repo path new-content)))))
(file-handler/set-file-content! repo path new-content) nil))))
(defn set-config!
([k v]