feat: add admin configuration
This commit is contained in:
1 parent
f83f2f8cc8
commit
bfc4ef6ffe
14 files changed
+287
-53
No files matched your search
@@ -1,4 +1,5 @@
|
||||
<script lang="ts">
|
||||
import type { Alignment } from '$lib/components/ui/menu/menu.js'
|
||||
import { expoOut } from 'svelte/easing'
|
||||
import { scale } from 'svelte/transition'
|
||||
|
||||
@@ -11,14 +12,6 @@
|
||||
|
||||
export let absolute = false
|
||||
|
||||
type Alignment =
|
||||
| 'top-right'
|
||||
| 'top-left'
|
||||
| 'bottom-right'
|
||||
| 'bottom-left'
|
||||
| 'bottom-center'
|
||||
| 'top-center'
|
||||
|
||||
export let alignment: Alignment = 'bottom-left'
|
||||
|
||||
let element: any
|
||||
@@ -32,7 +25,7 @@
|
||||
case 'bottom-left':
|
||||
return 'top-[100%] origin-top-left'
|
||||
case 'top-left':
|
||||
return 'top-[100%] left-0 origin-top-left'
|
||||
return 'bottom-[100%] left-0 origin-bottom-left'
|
||||
case 'bottom-right':
|
||||
return 'top-[100%] right-0 origin-top-right'
|
||||
case 'top-center':
|
||||
|
||||
Reference in new issue
Block a user