diff --git a/frontend/src/lib/components/apps/components/display/table/AppAggridTableActions.svelte b/frontend/src/lib/components/apps/components/display/table/AppAggridTableActions.svelte index a5034aa1d4..129e534ce2 100644 --- a/frontend/src/lib/components/apps/components/display/table/AppAggridTableActions.svelte +++ b/frontend/src/lib/components/apps/components/display/table/AppAggridTableActions.svelte @@ -35,12 +35,14 @@ let rowDiv: HTMLDivElement | undefined = undefined + let visible = false onMount(() => { // apply w-full to the the parent of the parent of the rowDiv if (rowDiv) { const parent = rowDiv.parentElement?.parentElement?.parentElement if (parent) { parent.classList.add('w-full') + visible = true } else { //sometimes the parent is not available immediately setTimeout(() => { @@ -48,6 +50,7 @@ if (parent) { parent.classList.add('w-full') } + visible = true }, 10) } } @@ -62,8 +65,9 @@ >
diff --git a/frontend/src/lib/components/apps/editor/settingsPanel/TableActions.svelte b/frontend/src/lib/components/apps/editor/settingsPanel/TableActions.svelte index 90ae8819e3..c8f5db7b1d 100644 --- a/frontend/src/lib/components/apps/editor/settingsPanel/TableActions.svelte +++ b/frontend/src/lib/components/apps/editor/settingsPanel/TableActions.svelte @@ -52,6 +52,13 @@ recomputeIds: [] } + if (typ == 'buttoncomponent') { + if (newComponent?.configuration?.size) { + // @ts-ignore + newComponent.configuration.size = { type: 'static', value: 'xs2' } + } + } + items = [ ...items, { @@ -70,6 +77,7 @@ return } components = components.filter((x) => x.id !== cid) + console.log('deleteComponent', cid, index, components, items) delete $errorByComponent[cid] $selectedComponent = [id]