Commit c9a0948b authored by Paul Slaughter's avatar Paul Slaughter

Merge branch '217593-fix-column-width' into 'master'

Fix column styling

See merge request gitlab-org/gitlab!34619
parents 86ecdb62 5297157d
...@@ -81,17 +81,17 @@ export default { ...@@ -81,17 +81,17 @@ export default {
{ {
key: 'checkbox', key: 'checkbox',
class: this.checkboxClass, class: this.checkboxClass,
thClass: commonThClass, thClass: `gl-w-9 ${commonThClass}`,
}, },
{ {
key: 'state', key: 'state',
label: s__('Vulnerability|Status'), label: s__('Vulnerability|Status'),
thClass: `gl-w-64 ${commonThClass}`, thClass: `vulnerability-td ${commonThClass}`,
}, },
{ {
key: 'severity', key: 'severity',
label: s__('Vulnerability|Severity'), label: s__('Vulnerability|Severity'),
thClass: `gl-w-64 ${commonThClass}`, thClass: `vulnerability-td ${commonThClass}`,
}, },
{ {
key: 'title', key: 'title',
...@@ -175,6 +175,7 @@ export default { ...@@ -175,6 +175,7 @@ export default {
> >
<template #head(checkbox)> <template #head(checkbox)>
<gl-form-checkbox <gl-form-checkbox
class="mr-0 mb-0"
:checked="hasSelectedAllVulnerabilities" :checked="hasSelectedAllVulnerabilities"
@change="toggleAllVulnerabilities" @change="toggleAllVulnerabilities"
/> />
...@@ -182,7 +183,7 @@ export default { ...@@ -182,7 +183,7 @@ export default {
<template #cell(checkbox)="{ item }"> <template #cell(checkbox)="{ item }">
<gl-form-checkbox <gl-form-checkbox
class="d-inline-block mr-0" class="d-inline-block mr-0 mb-0"
:checked="isSelected(item)" :checked="isSelected(item)"
@change="toggleVulnerability(item)" @change="toggleVulnerability(item)"
/> />
...@@ -242,3 +243,8 @@ export default { ...@@ -242,3 +243,8 @@ export default {
</gl-table> </gl-table>
</div> </div>
</template> </template>
<style>
.vulnerability-td {
width: 8rem;
}
</style>
---
title: Fix column styling in the vulnerability list
merge_request: 34619
author:
type: fixed
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment