enhance: display block container instead of reference for property value

This commit is contained in:
Tienson Qin
2023-07-05 14:45:02 +08:00
parent 289804da86
commit 716b8df9c5
3 changed files with 11 additions and 2 deletions

View File

@@ -2857,7 +2857,7 @@
(:block/properties-text-values block)
edit-input-id {:inline-text inline-text
:page-cp page-cp
:block-cp block-reference
:block-cp blocks-container
:editor-box (get config :editor-box)
:selected? selected?}))])

View File

@@ -275,7 +275,8 @@
(page-cp {} page))
:block
(block-cp {} value nil)
[:div.property-block-container.w-full
(block-cp [(db/entity [:block/uuid value])] {:editor-box editor-box})]
(inline-text {} :markdown (str value))))])))))

View File

@@ -39,6 +39,14 @@
.cp__select-input {
padding: 0.5em 1em;
}
.ls-block, .editor-wrapper {
margin: 0;
}
.property-block-container {
margin-left: -1.5em;
}
}
input.simple-input {