misc: I haven't eaten in 16 hours brb gonna get some food
This commit is contained in:
1 parent
a363fe3baf
commit
eb006ed982
21 files changed
+157
-89
No files matched your search
@@ -68,7 +68,6 @@
|
||||
>
|
||||
<Icon src={EllipsisHorizontal} width={16} height={16} mini />
|
||||
</button>
|
||||
<span class="opacity-80 my-1 py-1 text-xs mx-4">Comment actions</span>
|
||||
{#if $authData?.token}
|
||||
<MenuButton on:click={save}>
|
||||
<Icon src={comment.saved ? BookmarkSlash : Bookmark} mini size="16" />
|
||||
|
||||
@@ -48,14 +48,16 @@
|
||||
}
|
||||
</script>
|
||||
|
||||
<div class="max-w-lg flex flex-col gap-2">
|
||||
<div class="flex flex-col gap-2 relative">
|
||||
<TextArea
|
||||
rows={3}
|
||||
rows={4}
|
||||
placeholder="What are you thinking?"
|
||||
class="bg-slate-100 dark:bg-zinc-900"
|
||||
bind:value={newComment}
|
||||
/>
|
||||
<div class="w-24 ml-auto flex flex-row gap-2">
|
||||
<div
|
||||
class="w-full ml-auto flex flex-row gap-2 md:w-24 md:absolute md:bottom-0 md:right-0 md:m-2"
|
||||
>
|
||||
<Button
|
||||
large
|
||||
on:click={submit}
|
||||
|
||||
@@ -7,6 +7,8 @@
|
||||
import { ChevronDown, Icon } from 'svelte-hero-icons'
|
||||
import { authData, getClient } from '$lib/lemmy.js'
|
||||
import type { Post } from 'lemmy-js-client'
|
||||
import { Color } from '$lib/ui/colors.js'
|
||||
import { fly } from 'svelte/transition'
|
||||
|
||||
const maxComments = 250
|
||||
|
||||
@@ -57,11 +59,12 @@
|
||||
</script>
|
||||
|
||||
<ul
|
||||
in:fly={{ opacity: 0, y: -4 }}
|
||||
class={isParent
|
||||
? ''
|
||||
: 'ml-2.5 mt-2 pl-2.5 border-l-2 border-black/10 dark:border-white/10'}
|
||||
>
|
||||
{#each nodes.slice(0, maxComments) as node}
|
||||
{#each nodes.slice(0, maxComments) as node (node.comment_view.comment.id)}
|
||||
<Comment
|
||||
postId={post.id}
|
||||
{node}
|
||||
@@ -72,10 +75,11 @@
|
||||
<svelte:self {post} nodes={node.children} isParent={false} />
|
||||
{/if}
|
||||
{#if node.comment_view.counts.child_count > 0 && node.children.length == 0}
|
||||
<div class="m-1">
|
||||
<div class="my-2 w-36 h-8">
|
||||
<Button
|
||||
loading={loadingChildren}
|
||||
disabled={loadingChildren}
|
||||
large
|
||||
on:click={() => fetchChildren(node)}
|
||||
>
|
||||
<Icon src={ChevronDown} width={16} mini />
|
||||
|
||||
Reference in new issue
Block a user