misc: Fix line height

This commit is contained in:
Xyphyn committed 2023-07-18 12:05:32 -07:00
1 parent 9d21f6331a
commit 12d4a9d9de
5 files changed
+14 -9

No files matched your search

@@ -38,7 +38,7 @@
>
<details bind:open class="flex flex-col gap-1">
<summary
class="flex flex-row cursor-pointer gap-2 items-center group text-xs"
class="flex flex-row cursor-pointer gap-2 items-center group text-xs flex-wrap"
>
<span class:font-bold={op} class="flex flex-row gap-1 items-center">
<UserLink avatarSize={20} avatar user={node.comment_view.creator} />
@@ -73,7 +73,7 @@
<svelte:self {post} nodes={node.children} isParent={false} />
{/if}
{#if node.comment_view.counts.child_count > 0 && node.children.length == 0}
<div class="my-2 w-36 h-8">
<div class="my-2 min-w-[9rem] w-max h-8 border-l border-black/10 pl-2">
<Button
loading={loadingChildren}
disabled={loadingChildren}
+4 -1
View File
@@ -37,14 +37,17 @@
.markdown :global(ul) {
@apply list-disc pl-4;
line-height: 0.75rem;
}
.markdown :global(ol) {
@apply list-decimal pl-4;
line-height: 0.75rem;
}
.markdown :global(li) {
@apply my-2;
@apply m-0 !important;
line-height: 22px;
}
.markdown :global(blockquote) {
+1 -1
View File
@@ -1,7 +1,7 @@
<script lang="ts">
import Navbar from '$lib/components/ui/Navbar.svelte'
import '../style/app.css'
import { navigating, page } from '$app/stores'
import { navigating } from '$app/stores'
import nProgress from 'nprogress'
import 'nprogress/nprogress.css'
import ToastContainer from '$lib/components/ui/toasts/ToastContainer.svelte'
+7 -5
View File
@@ -2,18 +2,20 @@ import { authData, getClient } from '$lib/lemmy.js'
import { get } from 'svelte/store'
export async function load({ params }) {
const post = await getClient(params.instance).getPost({
id: Number(params.id),
auth: get(authData)?.token,
})
return {
post: getClient(params.instance).getPost({
id: Number(params.id),
auth: get(authData)?.token,
}),
post: post,
streamed: {
comments: getClient(params.instance).getComments({
post_id: Number(params.id),
type_: 'All',
limit: 25,
page: 1,
max_depth: 3,
max_depth: post.post_view.counts.comments > 100 ? 1 : 3,
saved_only: false,
sort: 'Hot',
auth: get(authData)?.token,