fix: remove property value padding

This commit is contained in:
Tienson Qin
2023-08-09 23:39:58 +08:00
parent 7f079a8b53
commit 41c988ec1d
2 changed files with 5 additions and 6 deletions

View File

@@ -4,14 +4,13 @@
}
.property-value-content {
@apply px-1 rounded-sm;
cursor: text;
min-height: 24px;
}
.property-value-content:hover {
background: var(--ls-secondary-background-color);
}
/* .property-value-content:hover { */
/* background: var(--ls-secondary-background-color); */
/* } */
.ls-properties-area {
@apply grid gap-1;

View File

@@ -221,7 +221,7 @@
esc?
blank?
(and *add-new-item? (not= type :default)))
(reset! *add-new-item? false)
(when *add-new-item? (reset! *add-new-item? false))
(and *add-new-item? @*add-new-item?)
(some-> (gdom/getElement editor-id)
@@ -286,7 +286,7 @@
[:div.h-6 (select-block block property select-opts)]
(let [config {:editor-opts (new-text-editor-opts repo block property value type editor-id *add-new-item? opts)}]
[:div.pl-1
[:div
(editor-box editor-args editor-id (cond-> config
multiple-values?
(assoc :property-value value)))]))]