misc: Fix line height
This commit is contained in:
1 parent
9d21f6331a
commit
12d4a9d9de
5 files changed
+13
-8
No files matched your search
@@ -38,7 +38,7 @@
|
|||||||
>
|
>
|
||||||
<details bind:open class="flex flex-col gap-1">
|
<details bind:open class="flex flex-col gap-1">
|
||||||
<summary
|
<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">
|
<span class:font-bold={op} class="flex flex-row gap-1 items-center">
|
||||||
<UserLink avatarSize={20} avatar user={node.comment_view.creator} />
|
<UserLink avatarSize={20} avatar user={node.comment_view.creator} />
|
||||||
|
|||||||
@@ -73,7 +73,7 @@
|
|||||||
<svelte:self {post} nodes={node.children} isParent={false} />
|
<svelte:self {post} nodes={node.children} isParent={false} />
|
||||||
{/if}
|
{/if}
|
||||||
{#if node.comment_view.counts.child_count > 0 && node.children.length == 0}
|
{#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
|
<Button
|
||||||
loading={loadingChildren}
|
loading={loadingChildren}
|
||||||
disabled={loadingChildren}
|
disabled={loadingChildren}
|
||||||
|
|||||||
@@ -37,14 +37,17 @@
|
|||||||
|
|
||||||
.markdown :global(ul) {
|
.markdown :global(ul) {
|
||||||
@apply list-disc pl-4;
|
@apply list-disc pl-4;
|
||||||
|
line-height: 0.75rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.markdown :global(ol) {
|
.markdown :global(ol) {
|
||||||
@apply list-decimal pl-4;
|
@apply list-decimal pl-4;
|
||||||
|
line-height: 0.75rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.markdown :global(li) {
|
.markdown :global(li) {
|
||||||
@apply my-2;
|
@apply m-0 !important;
|
||||||
|
line-height: 22px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.markdown :global(blockquote) {
|
.markdown :global(blockquote) {
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import Navbar from '$lib/components/ui/Navbar.svelte'
|
import Navbar from '$lib/components/ui/Navbar.svelte'
|
||||||
import '../style/app.css'
|
import '../style/app.css'
|
||||||
import { navigating, page } from '$app/stores'
|
import { navigating } from '$app/stores'
|
||||||
import nProgress from 'nprogress'
|
import nProgress from 'nprogress'
|
||||||
import 'nprogress/nprogress.css'
|
import 'nprogress/nprogress.css'
|
||||||
import ToastContainer from '$lib/components/ui/toasts/ToastContainer.svelte'
|
import ToastContainer from '$lib/components/ui/toasts/ToastContainer.svelte'
|
||||||
|
|||||||
@@ -2,18 +2,20 @@ import { authData, getClient } from '$lib/lemmy.js'
|
|||||||
import { get } from 'svelte/store'
|
import { get } from 'svelte/store'
|
||||||
|
|
||||||
export async function load({ params }) {
|
export async function load({ params }) {
|
||||||
return {
|
const post = await getClient(params.instance).getPost({
|
||||||
post: getClient(params.instance).getPost({
|
|
||||||
id: Number(params.id),
|
id: Number(params.id),
|
||||||
auth: get(authData)?.token,
|
auth: get(authData)?.token,
|
||||||
}),
|
})
|
||||||
|
|
||||||
|
return {
|
||||||
|
post: post,
|
||||||
streamed: {
|
streamed: {
|
||||||
comments: getClient(params.instance).getComments({
|
comments: getClient(params.instance).getComments({
|
||||||
post_id: Number(params.id),
|
post_id: Number(params.id),
|
||||||
type_: 'All',
|
type_: 'All',
|
||||||
limit: 25,
|
limit: 25,
|
||||||
page: 1,
|
page: 1,
|
||||||
max_depth: 3,
|
max_depth: post.post_view.counts.comments > 100 ? 1 : 3,
|
||||||
saved_only: false,
|
saved_only: false,
|
||||||
sort: 'Hot',
|
sort: 'Hot',
|
||||||
auth: get(authData)?.token,
|
auth: get(authData)?.token,
|
||||||
|
|||||||
Reference in new issue
Block a user