misc: slice body text
This commit is contained in:
1 parent
c7570840dd
commit
08fa42b329
3 files changed
+5
-3
No files matched your search
@@ -36,7 +36,7 @@ ${view == 'list' ? `max-h-24` : 'max-h-48'}`
|
|||||||
class:pointer-events-none={!clickThrough}
|
class:pointer-events-none={!clickThrough}
|
||||||
bind:this={element}
|
bind:this={element}
|
||||||
>
|
>
|
||||||
<Markdown inline={!expanded} source={body} />
|
<Markdown inline={!expanded} source={expanded ? body : body.slice(0, 1000)} />
|
||||||
{#if overflows}
|
{#if overflows}
|
||||||
<Button
|
<Button
|
||||||
on:click={() => (expanded = !expanded)}
|
on:click={() => (expanded = !expanded)}
|
||||||
|
|||||||
@@ -22,7 +22,9 @@
|
|||||||
|
|
||||||
marked.setOptions({
|
marked.setOptions({
|
||||||
pedantic: false,
|
pedantic: false,
|
||||||
|
// @ts-ignore
|
||||||
mangle: false,
|
mangle: false,
|
||||||
|
// @ts-ignore
|
||||||
headerIds: false,
|
headerIds: false,
|
||||||
})
|
})
|
||||||
|
|
||||||
@@ -62,7 +64,7 @@
|
|||||||
tablerow: MdTableRow,
|
tablerow: MdTableRow,
|
||||||
}
|
}
|
||||||
|
|
||||||
export const options = {
|
export const options: any = {
|
||||||
mangle: false,
|
mangle: false,
|
||||||
headerIds: false,
|
headerIds: false,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -57,7 +57,7 @@
|
|||||||
<div class="flex flex-col gap-4 h-full">
|
<div class="flex flex-col gap-4 h-full">
|
||||||
<Header pageHeader>Theme</Header>
|
<Header pageHeader>Theme</Header>
|
||||||
<div
|
<div
|
||||||
class="grid grid-cols-2 lg:grid-cols-3 xl:grid-cols-4
|
class="grid grid-cols-1 min-[512px]:grid-cols-2 2xl:grid-cols-3 3xl:grid-cols-4
|
||||||
gap-4 overflow-auto max-h-72"
|
gap-4 overflow-auto max-h-72"
|
||||||
>
|
>
|
||||||
{#each $themeData.themes as theme}
|
{#each $themeData.themes as theme}
|
||||||
|
|||||||
Reference in new issue
Block a user