Skip to content

Commit

Permalink
layout: polish layout
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Junk committed Oct 4, 2023
1 parent d6fe8d1 commit 7b44395
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 4 deletions.
1 change: 1 addition & 0 deletions src/lib/ValueField.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,6 @@
}
p {
margin-left: 4rem;
width: 80vw;
}
</style>
2 changes: 1 addition & 1 deletion src/lib/singleview/acknowledgments/Acknowledgment.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
}
</script>

<KeyValue {keys} {values} />
<KeyValue compact={true} {keys} {values} />
{#if ack.urls}
<ValueList label="URLs" values={ack.urls} />
{/if}
5 changes: 4 additions & 1 deletion src/lib/singleview/references/References.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@
</script>

{#if references}
{#each references as reference}
{#each references as reference, index}
<Reference {reference} />
{#if references.length > 1 && index < references.length - 1}
<hr style="width:80vw;" />
{/if}
{/each}
{/if}
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@
}
</script>

<KeyValue {keys} {values} />
<KeyValue compact={true} {keys} {values} />
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,11 @@

<Collapsible header="Threats" level="4">
<div class="spacer" />
{#each vulnerability.threats as threat}
{#each vulnerability.threats as threat, index}
<Threat {threat} />
{#if vulnerability.threats.length > 1 && index < vulnerability.threats.length - 1}
<hr style="width:80vw;" />
{/if}
{/each}
</Collapsible>

Expand Down

0 comments on commit 7b44395

Please sign in to comment.