fix(code-snippet): remove whitespace from pre tag

Fixes #1087
This commit is contained in:
Eric Liu 2022-02-11 16:52:38 -08:00
commit 00679ee425

View file

@ -190,9 +190,7 @@
class:bx--snippet-container="{true}"
style="width: 100%; min-height: {minHeight}px; max-height: {maxHeight}"
>
<pre bind:this="{ref}">
<code><slot>{code}</slot></code>
</pre>
<pre bind:this="{ref}"><code><slot>{code}</slot></code></pre>
</div>
{#if !hideCopyButton}
<CopyButton