Skip to content

Beautiful Open-Source Form Builder

Refactor EditorRightSidebar, FormFieldsEditor, and FormFieldEdit components for improved layout and usability

JhumanJ445057858331
diff --git a/client/components/open/editors/EditorRightSidebar.vue b/client/components/open/editors/EditorRightSidebar.vue
index 584bce8a6..944b35424 100644
--- a/client/components/open/editors/EditorRightSidebar.vue
+++ b/client/components/open/editors/EditorRightSidebar.vue
@@ -3,7 +3,7 @@
<div
v-if="show"
ref="elementRef"
- class="absolute shadow-lg shadow-neutral-800/30 top-0 h-[calc(100vh-53px)] right-0 lg:shadow-none lg:relative bg-white border-l overflow-y-scroll flex-shrink-0 z-30"
+ class="absolute shadow-lg shadow-neutral-800/30 top-0 h-[calc(100vh-55px)] right-0 lg:shadow-none lg:relative bg-white border-l flex-shrink-0 z-30"
:class="[
isResizable ? '' : 'w-full md:w-1/2 lg:w-2/5',
widthClass
@@ -16,7 +16,9 @@
@start-resize="startResize"
/>
- <slot />
+ <div class="h-full overflow-y-auto">
+ <slot />
+ </div>
</div>
</transition>
</template>
diff --git a/client/components/open/forms/components/FormFieldsEditor.vue b/client/components/open/forms/components/FormFieldsEditor.vue
index 2087e16b9..47f0482c8 100644
--- a/client/components/open/forms/components/FormFieldsEditor.vue
+++ b/client/components/open/forms/components/FormFieldsEditor.vue
@@ -1,5 +1,5 @@
<template>
- <div class="relative">
+ <div class="relative h-[calc(100vh-55px)] overflow-y-auto">
<div class="flex gap-2 sticky top-0 bg-white border-b z-10 p-4">
<UButton
color="neutral"
diff --git a/client/components/open/forms/fields/FormFieldEdit.vue b/client/components/open/forms/fields/FormFieldEdit.vue
index 5f5c29af4..c44d2129d 100644
--- a/client/components/open/forms/fields/FormFieldEdit.vue
+++ b/client/components/open/forms/fields/FormFieldEdit.vue
@@ -1,6 +1,6 @@
<template>
<div>
- <div class="p-2 border-b sticky top-0 z-10 bg-white">
+ <div class="p-2 border-b sticky top-0 z-20 bg-white">
<UButton
v-if="!field"
size="sm"