Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
nwaughachukwuma committed Nov 21, 2024
1 parent 4dce53e commit 2b93957
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
7 changes: 5 additions & 2 deletions app/src/lib/components/custom-source/RenderAudioSource.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@
<Accordion.Trigger>AI-generated Source</Accordion.Trigger>
<Accordion.Content>
<article
class="prose max-h-96 overflow-y-auto text-gray-300 flex p-2 flex-col gap-y-3 bg-gray-900/70 text-gray-30"
class="prose leading-relaxed max-h-96 overflow-y-auto text-gray-300 flex p-2 flex-col gap-y-3 bg-gray-900/70 text-gray-30"
>
{#await parse(audioSource) then parsedContent}
{@html parsedContent}
Expand All @@ -119,9 +119,12 @@
</Drawer.Portal>
</Drawer.Root>

<style>
<style lang="postcss">
:global(.accordion-content div) {
padding-bottom: 4px;
max-height: 100%;
}
article :global(p) {
@apply text-sm;
}
</style>
12 changes: 5 additions & 7 deletions app/src/lib/components/custom-source/RenderWebContent.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,11 @@
$: paragraphs = content.split('\n\n').filter((p) => p.trim());
</script>

<section class="w-full flex flex-col gap-y-3">
{#each paragraphs as paragraph, idx (idx)}
<article class="pb-2 border-b leading-relaxed border-b-gray-500/10">
{paragraph}
</article>
{/each}
</section>
{#each paragraphs as paragraph, idx (idx)}
<article class="pb-2 border-b leading-relaxed border-b-gray-500/10">
{paragraph}
</article>
{/each}

<style>
article :global(code) {
Expand Down

0 comments on commit 2b93957

Please sign in to comment.