Skip to content

Commit

Permalink
style: display notes differently
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Junk committed Sep 6, 2023
1 parent bb565f3 commit 73f25a5
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 11 deletions.
1 change: 1 addition & 0 deletions src/lib/singleview/Droparea.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
let text: string = "Drop your CSAF-file here";
const fileDropped = (e: DragEvent) => {
if (e.dataTransfer) {
appStore.setDocument(null);
const csafFile: File = e.dataTransfer.files[0];
const type: string = csafFile.type;
if (type == "application/json") {
Expand Down
4 changes: 2 additions & 2 deletions src/lib/singleview/general/General.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,8 @@
min-width: 80rem;
}
.revisionhistory {
width: 30vw;
min-width: 50rem;
width: 40vw;
min-width: 70rem;
}
dt {
float: left;
Expand Down
25 changes: 16 additions & 9 deletions src/lib/singleview/vulnerabilities/Vulnerability.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -65,14 +65,10 @@
{#if vulnerability.notes && Array.isArray(vulnerability.notes)}
<Collapsible header="Notes" level="4">
{#each vulnerability.notes as note}
<dl>
<dt>Title</dt>
<dd>{note.title}</dd>
<dt>Category</dt>
<dd>{note.category}</dd>
<dt>Text</dt>
<dd>{note.text}</dd>
</dl>
<div class="note">
<h6>{note.title}</h6>
<p>{note.text}</p>
</div>
{/each}
</Collapsible>
{/if}
Expand All @@ -81,13 +77,24 @@
</div>

<style>
.note {
text-align: justify;
}
dt {
float: left;
clear: left;
font-weight: 100;
width: 21rem;
width: 14rem;
}
dd {
margin-bottom: 0.1em;
}
h6 {
font-family: monospace;
margin-bottom: 0.1em;
}
p {
font-size: small;
font-family: monospace;
}
</style>

0 comments on commit 73f25a5

Please sign in to comment.