Skip to content

Commit

Permalink
fix autolearn spacing
Browse files Browse the repository at this point in the history
  • Loading branch information
nornagon committed Aug 3, 2023
1 parent 0a09c52 commit bcf7ac3
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions src/types/Recipe.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -209,17 +209,11 @@ function activityLevelName(level: number) {
{#if recipe.autolearn}
<ul class="comma-separated">
{#if Array.isArray(recipe.autolearn)}
{#each recipe.autolearn as [skill, level]}
<li><ThingLink type="skill" id={skill} /> ({level})</li>
{/each}
{#each recipe.autolearn as [skill, level]}<li><ThingLink type="skill" id={skill} /> ({level})</li>{/each}
{:else}
{#if recipe.skill_used}
<li>
<ThingLink type="skill" id={recipe.skill_used} /> ({recipe.difficulty ??
0})
</li>
{/if}
{#if skillsRequired.length}
<!-- prettier-ignore-->
<li><ThingLink type="skill" id={recipe.skill_used} /> ({recipe.difficulty ?? 0})</li>{/if}{#if skillsRequired.length}
{#each skillsRequired as [skill, level]}
<li><ThingLink type="skill" id={skill} /> ({level})</li>
{/each}
Expand Down

0 comments on commit bcf7ac3

Please sign in to comment.