Skip to content

Commit

Permalink
align snippet text and date horizontally
Browse files Browse the repository at this point in the history
  • Loading branch information
mikkeldenker committed May 7, 2024
1 parent 905fec8 commit e5e2126
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 11 deletions.
16 changes: 7 additions & 9 deletions frontend/src/lib/components/TextSnippet.svelte
Expand Up @@ -4,12 +4,10 @@
export let snippet: TextSnippet;
</script>

<p>
{#each snippet.fragments as fragment}
{#if fragment.kind == 'normal'}
{fragment.text}
{:else if fragment.kind == 'highlighted'}
<b>{fragment.text}</b>
{/if}
{/each}
</p>
{#each snippet.fragments as fragment}
{#if fragment.kind == 'normal'}
{fragment.text}
{:else if fragment.kind == 'highlighted'}
<b>{fragment.text}</b>
{/if}
{/each}
4 changes: 2 additions & 2 deletions frontend/src/routes/search/Result.svelte
Expand Up @@ -70,7 +70,7 @@
<AdjustVertical class="text-md" />
</button>
</div>
<div class="snippet text-sm font-normal text-neutral-focus [&>b]:font-bold">
<p class="snippet text-sm font-normal text-neutral-focus [&>b]:font-bold">
{#if $summary}
<Summary url={webpage.url} on:hide={() => clearSummary(webpage)} />
{:else if webpage.richSnippet && webpage.richSnippet._type == 'stackOverflowQA'}
Expand Down Expand Up @@ -116,6 +116,6 @@
</div>
</div>
{/if}
</div>
</p>
</div>
</span>

0 comments on commit e5e2126

Please sign in to comment.