Skip to content

Commit

Permalink
Merge branch 'cvss-editor-ui-bugfix' into 'main'
Browse files Browse the repository at this point in the history
Fix CVSS editor UI on small resolutions

See merge request reportcreator/reportcreator!337
  • Loading branch information
MWedl committed Nov 13, 2023
2 parents 524b92a + d127222 commit 11e698a
Showing 1 changed file with 23 additions and 21 deletions.
44 changes: 23 additions & 21 deletions frontend/src/components/S/CvssField.vue
Original file line number Diff line number Diff line change
Expand Up @@ -24,28 +24,30 @@
</template>

<template #title>
CVSS Editor
<span v-if="availableCvssVersions.length > 1">
<v-btn-toggle
v-model="editorCvssVersion"
:disabled="props.disabled"
mandatory
:border="true"
color="secondary"
density="compact"
class="mr-2"
>
<v-btn
:value="CvssVersion.CVSS40"
:text="CvssVersion.CVSS40"
:disabled="props.disabled || !availableCvssVersions.includes(CvssVersion.CVSS40)"
/>
<v-btn
:value="CvssVersion.CVSS31"
:text="CvssVersion.CVSS31"
:disabled="props.disabled || !availableCvssVersions.includes(CvssVersion.CVSS31)"
/>
</v-btn-toggle>

<v-btn-toggle
v-model="editorCvssVersion"
:disabled="props.disabled"
mandatory
:border="true"
color="secondary"
density="compact"
class="ml-3"
>
<v-btn
:value="CvssVersion.CVSS40"
:text="CvssVersion.CVSS40"
:disabled="props.disabled || !availableCvssVersions.includes(CvssVersion.CVSS40)"
/>
<v-btn
:value="CvssVersion.CVSS31"
:text="CvssVersion.CVSS31"
:disabled="props.disabled || !availableCvssVersions.includes(CvssVersion.CVSS31)"
/>
</v-btn-toggle>
{{ editorCvssVersion }} Editor
</span>
</template>
<template #toolbar>
<div class="cvss-score mr-2" :class="'level-' + editorScoreInfo.levelNumber">
Expand Down

0 comments on commit 11e698a

Please sign in to comment.