feat: Add post uploading

This commit is contained in:
Xyphyn committed 2023-07-05 12:58:36 -07:00
1 parent 5f674d4691
commit 1842139af9
31 files changed
+560 -225

No files matched your search

+8 -2
View File
@@ -14,6 +14,8 @@
export let top = false
let element: any
export let preventDefault = false
</script>
<svelte:body
@@ -31,7 +33,11 @@
class="overflow-visible z-30 {absolute
? 'absolute'
: 'relative'} cursor-auto {clazz}"
on:click={() => (open = !open)}
on:click={(e) => {
if (preventDefault) e.preventDefault()
open = !open
}}
bind:this={element}
>
<slot name="button" />
@@ -42,7 +48,7 @@
start: 0.95,
easing: expoOut,
}}
class="absolute {rtl
class="absolute max-h-64 overflow-auto {rtl
? 'origin-top-right right-0'
: 'origin-top-left left-0'}
{top ? 'bottom-[100%] origin-bottom-left' : 'top-[100%]'}