Skip to content

Commit

Permalink
Code-snippets padding fix (viamrobotics#484)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kschappacher authored Feb 21, 2024
1 parent 4b0f457 commit 668f5e0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@viamrobotics/prime-core",
"version": "0.0.90",
"version": "0.0.91",
"publishConfig": {
"access": "public"
},
Expand Down
6 changes: 2 additions & 4 deletions packages/core/src/lib/code-snippet.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ onMount(async () => {
<figcaption><slot name="caption" /></figcaption>
{/if}

<div class="flex items-baseline gap-x-4 bg-light p-2">
<div class="flex gap-x-4 bg-light p-4">
<!-- The formatting here is intentional to preserve the formatting of `code` -->
<pre class="flex-1 overflow-x-auto language-{language}"><code
bind:this={element}
Expand All @@ -165,7 +165,7 @@ onMount(async () => {

{#if showCopyButton}
<IconButton
cx="m-1 text-gray-6"
cx="text-gray-6"
icon={COPY_STATES[copyState].icon}
label={COPY_STATES[copyState].label}
on:click={copyToClipboard}
Expand All @@ -186,8 +186,6 @@ figure pre[class*='language-'] > code[class*='language-'] {
figure pre[class*='language-'] {
padding: 0;
padding-left: 0.5rem;
padding-top: 0.5rem;
}
figure pre[class*='language-'] > code[class*='language-'] {
Expand Down

0 comments on commit 668f5e0

Please sign in to comment.