Skip to content

Commit

Permalink
feat: adjust distances between form nodes (#65)
Browse files Browse the repository at this point in the history
Co-authored-by: linusbbb <lbrombacher03@gmail.com>
  • Loading branch information
mariusheine and Linus-Brombacher authored Jan 8, 2025
1 parent 62d1afe commit b48e644
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/former/src/components/FormDragContainer.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<div
class="relative flex flex-col gap-3 before:content-[attr(data-drag-hint)] before:hidden before:m-auto before:text-center"
class="relative flex flex-col gap-4 before:content-[attr(data-drag-hint)] before:hidden before:m-auto before:text-center"
:class="{ 'former-drag-container min-h-24 w-full border-2 border-dashed rounded-md border-zinc-200 empty:before:block empty:bg-zinc-100 empty:dark:bg-zinc-700': mode === 'build' }"
:data-parent-node="node?._id"
:data-category="category"
Expand Down
4 changes: 2 additions & 2 deletions packages/former/src/components/FormNode.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
v-if="isShown || mode === 'build'"
:data-node="node._id"
:draggable="mode === 'build'"
class="relative flex items-center duration-0 w-full py-2 px-2 rounded"
class="relative flex items-center duration-0 w-full rounded"
:class="{
'border-2 !border-blue-600': mode === 'build' && selectedNode?._id === node._id,
'bg-zinc-300 dark:bg-zinc-700 rounded': mode === 'build' && !isShown,
'former-draggable ': mode === 'build',
'former-draggable p-2': mode === 'build',
'border-2 border-red-500': mode === 'build' && !isNodeValidFlag,
}"
@click.stop="selectedNode = node"
Expand Down

0 comments on commit b48e644

Please sign in to comment.