mirror of https://github.com/logseq/logseq
fix(ui): style not refresh when toggling option for the fold button position
parent
c3ac05181d
commit
0d04e777fc
|
@ -1712,11 +1712,7 @@
|
||||||
ref? (:ref? config)
|
ref? (:ref? config)
|
||||||
empty-content? (block-content-empty? block)
|
empty-content? (block-content-empty? block)
|
||||||
fold-button-right? (state/enable-fold-button-right?)]
|
fold-button-right? (state/enable-fold-button-right?)]
|
||||||
[:div.mr-1.flex.flex-row.items-center.sm:mr-2
|
[:div.block-control-wrap.mr-1.flex.flex-row.items-center.sm:mr-2
|
||||||
{:style {:height 24
|
|
||||||
:margin-top 0
|
|
||||||
:float "left"}}
|
|
||||||
|
|
||||||
(when (or (not fold-button-right?) has-child?)
|
(when (or (not fold-button-right?) has-child?)
|
||||||
[:a.block-control
|
[:a.block-control
|
||||||
{:id (str "control-" uuid)
|
{:id (str "control-" uuid)
|
||||||
|
|
|
@ -172,6 +172,11 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.block-control-wrap {
|
||||||
|
height: 24px;
|
||||||
|
margin-top: 0;
|
||||||
|
}
|
||||||
|
|
||||||
.block-control, .block-control:hover {
|
.block-control, .block-control:hover {
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
cursor: default;
|
cursor: default;
|
||||||
|
@ -523,6 +528,10 @@ a:hover > .bullet-container {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.block-children {
|
||||||
|
border-left: none;
|
||||||
|
}
|
||||||
|
|
||||||
.hide-inner-bullet .bullet {
|
.hide-inner-bullet .bullet {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
|
@ -122,6 +122,11 @@ main.ls-fold-button-on-right {
|
||||||
.page-blocks-inner {
|
.page-blocks-inner {
|
||||||
margin-left: 0 !important;
|
margin-left: 0 !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.block-control-wrap {
|
||||||
|
height: unset;
|
||||||
|
background: transparent;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.cp__sidebar-left-layout {
|
.cp__sidebar-left-layout {
|
||||||
|
|
|
@ -27,7 +27,7 @@
|
||||||
ks (if (vector? k) k [k])
|
ks (if (vector? k) k [k])
|
||||||
new-result (rewrite/assoc-in result ks v)
|
new-result (rewrite/assoc-in result ks v)
|
||||||
new-content (str new-result)]
|
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!
|
(defn set-config!
|
||||||
([k v]
|
([k v]
|
||||||
|
|
Loading…
Reference in New Issue