feat: Add post and comment editing (#12)

* feat: Add editing

* feat: Add comment badges

* fix: make loading more consistent

* misc: remove prop drilling

* feat: Add post editing

* misc: update version

* feat: Add comment deletion
This commit is contained in:
Xylight authored and GitHub committed 2023-07-25 11:12:15 -07:00
1 parent 0327ae4aed
commit 7b1ad247f9
16 files changed
+417 -192

No files matched your search

+1 -1
View File
@@ -17,7 +17,7 @@
<div
class="bg-white break-words
p-1 {getColor(cardColor)} rounded-md {clazz}"
{getColor(cardColor)} rounded-md {clazz}"
>
<slot />
</div>
+1 -1
View File
@@ -78,7 +78,7 @@
{itemsClass}"
>
{#if open}
<div on:click={toggleOpen}>
<div on:click={toggleOpen} class="flex flex-col gap-0">
<slot {toggleOpen} />
</div>
{/if}
+3 -3
View File
@@ -15,8 +15,8 @@
<!-- svelte-ignore a11y-click-events-have-key-events -->
<div
class="overflow-hidden fixed top-0 left-0 w-screen h-screen z-[100]
flex flex-col items-center justify-center bg-black/50 backdrop-blur-sm"
transition:fade|local={{ duration: 200 }}
flex flex-col items-center justify-center bg-black/50 backdrop-blur-sm rounded-xl"
transition:fade={{ duration: 200 }}
on:click={() => (open = false)}
>
<!-- svelte-ignore a11y-click-events-have-key-events -->
@@ -35,7 +35,7 @@ flex flex-col items-center justify-center bg-black/50 backdrop-blur-sm"
</div>
{#if action}
<div
class="border-t bg-slate-100 dark:bg-zinc-900 dark:border-zinc-800 p-3 flex justify-end"
class="border-t bg-slate-100 dark:bg-zinc-900 dark:border-zinc-800 p-3 py-2 flex justify-end rounded-b-xl"
>
<slot name="action">
<Button
@@ -5,7 +5,7 @@
</script>
<div
class="fixed right-0 bottom-0 flex flex-col items-end justify-end z-50 p-4
class="fixed right-0 bottom-0 flex flex-col items-end justify-end z-[200] p-4
group
overflow-hidden h-screen min-w-[24rem] pointer-events-none"
>