Skip to content

Commit

Permalink
fix: keyvalue rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Junk committed Nov 24, 2023
1 parent bf6f6b5 commit f0e6e62
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/lib/KeyValue.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@
marked.use({ gfm: true });
</script>

{#each keys as key, index}
<table class="keyvalue">
<tbody>
<table class="keyvalue">
<tbody>
{#each keys as key, index}
{#if key == "text" || key == "Text"}
<tr
><td class="key">{key}</td><td class="value">
Expand All @@ -33,6 +33,6 @@
{:else}
<tr><td class="key">{key}</td><td class="value">{values[index]}</td></tr>
{/if}
</tbody>
</table>
{/each}
{/each}
</tbody>
</table>
4 changes: 4 additions & 0 deletions static/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,10 @@ hr {
border-radius: 3px;
}

.key {
width: 5rem;
}

.loader {
margin-bottom: 1rem;
width: 100%;
Expand Down

0 comments on commit f0e6e62

Please sign in to comment.