diff --git a/frontend/src/routes/(app)/compliance-assessments/[id=uuid]/TreeViewItemContent.svelte b/frontend/src/routes/(app)/compliance-assessments/[id=uuid]/TreeViewItemContent.svelte index 66f1a34ad8..e4e5d71366 100644 --- a/frontend/src/routes/(app)/compliance-assessments/[id=uuid]/TreeViewItemContent.svelte +++ b/frontend/src/routes/(app)/compliance-assessments/[id=uuid]/TreeViewItemContent.svelte @@ -102,7 +102,9 @@ {:else} - {content} +

+ {content} +

{/if} {#if (threats && threats.length > 0) || (security_functions && security_functions.length > 0)} diff --git a/frontend/src/routes/(app)/frameworks/[id=uuid]/TreeViewItemContent.svelte b/frontend/src/routes/(app)/frameworks/[id=uuid]/TreeViewItemContent.svelte index 12632f19b5..e3b5547a9d 100644 --- a/frontend/src/routes/(app)/frameworks/[id=uuid]/TreeViewItemContent.svelte +++ b/frontend/src/routes/(app)/frameworks/[id=uuid]/TreeViewItemContent.svelte @@ -21,16 +21,26 @@
- - {content} + +

+ {content} +

{#if (threats && threats.length > 0) || (security_functions && security_functions.length > 0)}
(showInfo = !showInfo)} - on:keydown={(_) => (showInfo = !showInfo)} + on:click={(e) => { + e.preventDefault(); + showInfo = !showInfo; + }} + on:keydown={(e) => { + if (e.key === 'Enter') { + e.preventDefault(); + showInfo = !showInfo; + } + }} > Learn more