Skip to content

Commit

Permalink
fix: fix requirements tags layout
Browse files Browse the repository at this point in the history
  • Loading branch information
Mohamed-Hacene committed Oct 4, 2024
1 parent 9ea3cdc commit 45273d9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 21 deletions.
2 changes: 1 addition & 1 deletion frontend/messages/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -756,5 +756,5 @@
"ShowAllNodesMessage": "Show all",
"ShowOnlyAssessable": "Only assessable",
"NoPreviewMessage": "No preview available.",
"entityAssessmentEvidenceHelpText": "An external questionnaire"
"entityAssessmentEvidenceHelpText": "An external questionnaire",
}
Original file line number Diff line number Diff line change
Expand Up @@ -155,28 +155,13 @@
{/if}
{/each}
{/if}
{#if node.question.questions}
<span class="badge" style="background-color: pink; color: {darkenColor('#FFC0CB', 0.5)}"
>{node.question.questions.length} {m.questionOrQuestions()}</span
>
{/if}
</div>
</div>
<div>
{#if hasAssessableChildren}
{#each Object.entries(complianceStatusColorMap) as status}
{#if resultCounts[status[0]]}
<span
class="badge mr-1"
style="background-color: {status[1] + '44'}; color: {darkenColor(status[1], 0.3)}"
>
{resultCounts[status[0]]}
{safeTranslate(status[0])}
</span>
{/if}
{/each}
{/if}
{#if node.question.questions}
<span class="badge" style="background-color: pink; color: {darkenColor('#FFC0CB', 0.5)}"
>{node.question.questions.length} {m.questionOrQuestions()}</span
>
{/if}
</div>
</div>
{#if (threats && threats.length > 0) || (reference_controls && reference_controls.length > 0)}
<div
Expand Down

0 comments on commit 45273d9

Please sign in to comment.