diff --git a/src/components/RecursiveProblemTile.svelte b/src/components/RecursiveProblemTile.svelte index e9683de..61a278b 100644 --- a/src/components/RecursiveProblemTile.svelte +++ b/src/components/RecursiveProblemTile.svelte @@ -21,49 +21,54 @@ {#if problem} - { - //if (!expanded && !$isSelected) {expanded = true} - $selected = problem; - }} - class="problems-start flex w-full cursor-zoom-in flex-col gap-2 rounded-lg border p-3 text-left text-sm transition-all hover:bg-accent hover:bg-opacity-100 {$isSelected - ? 'bg-accent bg-opacity-90' - : ''}" - > -
-
-
-
{problem.tldr}
- {#if !$bloom} - - {/if} -
-
- {formatTimeAgo(new Date(problem.event.created_at * 1000))} +
+ { + //if (!expanded && !$isSelected) {expanded = true} + $selected = problem; + }} + class="problems-start flex w-full cursor-zoom-in flex-col gap-2 rounded-lg border p-3 text-left text-sm transition-all hover:bg-accent hover:bg-opacity-100 {$isSelected + ? 'bg-accent bg-opacity-90' + : ''}" + > +
+
+
+
{problem.tldr}
+ {#if !$bloom} + + {/if} +
+
+ {formatTimeAgo(new Date(problem.event.created_at * 1000))} +
+
{problem.para}
+
+
+ {problem.page.substring(0, 300)}
-
{problem.para}
-
-
- {problem.page.substring(0, 300)} -
-
-
{ - expanded = !expanded; - }} - > - {#if !expanded}{:else}{/if}{$children.length} sub-problems +
{ + expanded = !expanded; + }} > + {#if !expanded}{:else}{/if}{$children.length} sub-problems +
-
- + +
{#if expanded} {#each $children as child} -
- +
+
+ +
{/each} {/if} diff --git a/src/layouts/MailList.svelte b/src/layouts/MailList.svelte index 86e2d6b..96c130a 100644 --- a/src/layouts/MailList.svelte +++ b/src/layouts/MailList.svelte @@ -23,7 +23,7 @@
-
+
{#each $filtered as problem} {/each}