fixed drag and drop issue

This commit is contained in:
paul
2025-03-09 17:48:23 +05:30
parent b1abb4651d
commit d1ef2fa3f8
6 changed files with 52 additions and 18 deletions

View File

@@ -78,7 +78,7 @@ function PluginsContainer({sidebarContent, onWidgetsUpdate}){
target="_blank" rel="noopener noreferrer"
className="tw-flex tw-mt-6 btn"
>
Request new plugin support
Request new plugin
</Button>
</div>
)

View File

@@ -18,7 +18,7 @@ function transformWidgets(widgets, widgetRefs, isTopLevel=true) {
isTopLevel: isTopLevel,
widgetRef: widgetRefs.current[widget.id],
children: widget.children.length > 0 ? transformWidgets(widget.children, widgetRefs, false) : []
}));
}))
}
@@ -62,6 +62,13 @@ function TreeviewContainer() {
</Tree>
{
Object.keys(transformedContent || {}).length === 0 &&
<div className="tw-text-sm tw-place-content-center">
Start adding widgets to view it in tree view
</div>
}
</div>
</div>
)

View File

@@ -45,6 +45,10 @@ function Share({children, className=""}){
footer={null}
open={shareModalOpen}>
<div className="tw-text-lg">
Share and help speed up development
</div>
<div className="tw-mt-5 tw-flex tw-place-content-center tw-w-full tw-place-items-center">
<a onClick={onCopy}
className="hover:!tw-bg-gray-100 hover:!tw-color-black !tw-text-4xl"