fixed overflow and hidden bugs
This commit is contained in:
parent
d021281df3
commit
97fb57c659
@ -11,11 +11,17 @@
|
|||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<div class="grid" style="display: grid; {componentsData.layout || ''}">
|
<div class="grid h-full w-full" style="display: grid; {componentsData.layout || ''}">
|
||||||
{#each componentsData.children as component (component.id)}
|
{#each componentsData.children as component (component.id)}
|
||||||
{#await getComponent(component.componentName) then Component}
|
{#await getComponent(component.componentName) then Component}
|
||||||
{#if Component}
|
{#if Component}
|
||||||
<svelte:component this={Component} {...component.props} class={component.slot} />
|
<div class="w-full h-full overflow-hidden">
|
||||||
|
<svelte:component
|
||||||
|
this={Component}
|
||||||
|
{...component.props}
|
||||||
|
class=" h-full w-full {component.slot} "
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
{:else}
|
{:else}
|
||||||
<p>Component {component.componentName} not found.</p>
|
<p>Component {component.componentName} not found.</p>
|
||||||
{/if}
|
{/if}
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<main class="p-4 flex flex-col-reverse overflow-y-auto h-[calc(100vh-70px)]">
|
<main class="p-4 overflow-y-auto h-full w-full">
|
||||||
<!-- Your messages, displayed in chronological order -->
|
<!-- Your messages, displayed in chronological order -->
|
||||||
{#each latestMessages as message}
|
{#each latestMessages as message}
|
||||||
<div class="bg-white p-3 rounded-lg shadow-lg mb-2">
|
<div class="bg-white p-3 rounded-lg shadow-lg mb-2">
|
||||||
|
Loading…
Reference in New Issue
Block a user