From 2bc2b93e512094ad416975b1a36313329b70a4c6 Mon Sep 17 00:00:00 2001 From: Alexis Sellier Date: Mon, 8 Aug 2022 17:42:03 +0200 Subject: [PATCH] Fix `
` tag visual bug

This was introduced by a svelte upgrade.

Signed-off-by: Alexis Sellier 
---
 src/base/projects/Blob.svelte | 19 ++++++++-----------
 1 file changed, 8 insertions(+), 11 deletions(-)

diff --git a/src/base/projects/Blob.svelte b/src/base/projects/Blob.svelte
index db7117fc1..6b66a7761 100644
--- a/src/base/projects/Blob.svelte
+++ b/src/base/projects/Blob.svelte
@@ -61,7 +61,7 @@
     font-family: var(--font-family-sans-serif);
     text-align: right;
     user-select: none;
-    padding: 0 1rem 0.5rem 1rem;
+    padding: 1rem 1rem 0.5rem 1rem;
   }
   .line-number {
     display: block;
@@ -146,22 +146,19 @@
         {#if line}
           
{/if} -
+        
{#each lineNumbers as lineNumber} {lineNumber} {/each} -
-
-          {#if blob.html}
-            {@html blob.content}
-          {:else}
-            {blob.content}
-          {/if}
-        
+
+ {#if blob.html} +
{@html blob.content}
+ {:else} +
{blob.content}
+ {/if} {/if}