Skip to content

Commit

Permalink
fix(ui): style not refresh when toggling option for the fold button p…
Browse files Browse the repository at this point in the history
…osition
  • Loading branch information
xyhp915 committed Nov 25, 2022
1 parent c3ac051 commit 0d04e77
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 6 deletions.
6 changes: 1 addition & 5 deletions src/main/frontend/components/block.cljs
Expand Up @@ -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)
Expand Down
9 changes: 9 additions & 0 deletions src/main/frontend/components/block.css
Expand Up @@ -172,6 +172,11 @@
}
}

.block-control-wrap {
height: 24px;
margin-top: 0;
}

.block-control, .block-control:hover {
text-decoration: none;
cursor: default;
Expand Down Expand Up @@ -523,6 +528,10 @@ a:hover > .bullet-container {
display: none;
}

.block-children {
border-left: none;
}

.hide-inner-bullet .bullet {
display: none;
}
Expand Down
5 changes: 5 additions & 0 deletions src/main/frontend/components/theme.css
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion src/main/frontend/handler/config.cljs
Expand Up @@ -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]
Expand Down

0 comments on commit 0d04e77

Please sign in to comment.