diff --git a/frappe/public/js/form_builder/components/FormBuilder.vue b/frappe/public/js/form_builder/components/FormBuilder.vue index d4144eccde..e35ce1a76a 100644 --- a/frappe/public/js/form_builder/components/FormBuilder.vue +++ b/frappe/public/js/form_builder/components/FormBuilder.vue @@ -36,7 +36,7 @@ onMounted(() => store.fetch());
-
+
@@ -153,6 +153,72 @@ onMounted(() => store.fetch()); } } + :deep(.preview) { + .tab, .column, .field, [data-is-custom="1"] { + background-color: var(--fg-color); + } + + .column, .field { + border: none; + padding: 0; + } + + .form-section { + padding: 5px; + + .section-header { + &.has-label { + padding: 10px 15px; + margin-bottom: 8px; + } + + &.collapsed { + margin-bottom: 0; + } + } + + .section-columns { + margin-top: 8px; + + .section-columns-container { + .column { + padding-left: 15px; + padding-right: 15px; + margin: 0; + + .field { + margin: 0; + margin-bottom: 1rem; + .field-controls { + margin-bottom: 5px; + } + } + } + } + } + } + + .selected, .hovered { + border-color: transparent; + } + + input, + textarea, + select, + .ace_editor, + .ace_gutter, + .ace_content, + .signature-field, + .missing-image, + .ql-editor { + background-color: var(--control-bg) !important; + } + + input[type="checkbox"] { + background-color: var(--fg-bg) !important; + } + } + .form-main:not(:has(.tab-header)) :deep(.tab-contents) { max-height: calc(100vh - 160px); } diff --git a/frappe/public/js/form_builder/components/Section.vue b/frappe/public/js/form_builder/components/Section.vue index 8badf28f2c..85ce10dc3a 100644 --- a/frappe/public/js/form_builder/components/Section.vue +++ b/frappe/public/js/form_builder/components/Section.vue @@ -87,9 +87,12 @@ function move_sections_to_tab() { @mouseup.stop="store.start_drag(section.df.is_custom_field)" >