Skip to content

Commit

Permalink
hide preview source button until nonempty (#186)
Browse files Browse the repository at this point in the history
  • Loading branch information
StevenClontz authored Nov 2, 2024
1 parent c54f240 commit 1b1233f
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions packages/viewer/src/components/Dev/Preview.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,11 @@
</div>
<div class="col-sm" data-testid="output">
<Typeset {body} {truncated} />
<hr />
<section class="description-markdown">
<Source source={body} external />
</section>
{#if body.trim().length > 0}
<hr />
<section class="description-markdown">
<Source source={body} external />
</section>
{/if}
</div>
</div>

0 comments on commit 1b1233f

Please sign in to comment.