fix(frontend): fix hidden wizards (#3045)

This commit is contained in:
Faton Ramadani
2024-01-18 17:40:21 +01:00
committed by GitHub
parent 7342594fb9
commit 1b3462b461
2 changed files with 13 additions and 4 deletions
@@ -4,8 +4,8 @@
import SimpleEditor from '../SimpleEditor.svelte'
import Label from '../Label.svelte'
import Tooltip from '../Tooltip.svelte'
import Button from '../common/button/Button.svelte'
import { offset, flip, shift } from 'svelte-floating-ui/dom'
type Column = {
minWidth: number
@@ -83,7 +83,11 @@
</script>
<Popup
floatingConfig={{ strategy: 'fixed', placement: 'left-end' }}
floatingConfig={{
strategy: 'fixed',
placement: 'left-end',
middleware: [offset(8), flip(), shift()]
}}
containerClasses="border rounded-lg shadow-lg bg-surface p-4"
>
<svelte:fragment slot="button">
@@ -8,6 +8,7 @@
import Button from '../common/button/Button.svelte'
import { twMerge } from 'tailwind-merge'
import { ColumnIdentity, type ColumnDef } from '../apps/components/display/dbtable/utils'
import { offset, flip, shift } from 'svelte-floating-ui/dom'
export let value: ColumnDef | undefined
@@ -119,8 +120,12 @@
</script>
<Popup
floatingConfig={{ strategy: 'fixed', placement: 'left-start' }}
containerClasses="border rounded-lg shadow-lg bg-surface p-4 h-[512px] max-h-[512px] overflow-y-auto"
floatingConfig={{
strategy: 'fixed',
placement: 'left-start',
middleware: [offset(8), flip(), shift()]
}}
containerClasses="border rounded-lg shadow-lg bg-surface p-4 max-h-[512px] overflow-y-auto"
>
<svelte:fragment slot="button">
<slot name="trigger" />