Skip to content

Commit

Permalink
fix: Display preformatted option descriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
oSumAtrIX committed Nov 13, 2023
1 parent 2c4daec commit 6a1db68
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/routes/patches/PatchItem.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,9 @@
{#each patch.options as option}
<div class="option">
<h5 id="option-title">{option.title}</h5>
<h5>{option.description}</h5>
<h5>
<pre id="option-description">{option.description}</pre>
</h5>
</div>
{/each}
</div>
Expand All @@ -106,6 +108,11 @@
color: var(--accent-color);
}
#option-description {
white-space: pre-wrap;
word-break: break-all;
}
#option-title {
color: var(--accent-color-two);
}
Expand Down

0 comments on commit 6a1db68

Please sign in to comment.