Skip to content

Commit 3633c9a

Browse files
committed
Resolves: MTV-4628 | address feedback
Signed-off-by: Jeff Puzzo <jpuzzo@redhat.com>
1 parent b2084be commit 3633c9a

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

src/plans/list/utils/constants.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
export const PLAN_FIELD_WIDTH_PERCENTAGE = 15;
2+
13
export enum PlanTableResourceId {
24
Name = 'name',
35
Namespace = 'namespace',

src/plans/list/utils/planFields.ts

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,11 @@ import { FilterDefType, type ResourceField } from '@components/common/utils/type
99
import type { V1beta1Plan } from '@forklift-ui/types';
1010
import { t } from '@utils/i18n';
1111

12-
import { planResourceApiJsonPaths, PlanTableResourceId } from './constants';
12+
import {
13+
PLAN_FIELD_WIDTH_PERCENTAGE,
14+
planResourceApiJsonPaths,
15+
PlanTableResourceId,
16+
} from './constants';
1317

1418
const planPhases: { id: PlanStatuses; label: string }[] = [
1519
{ id: PlanStatuses.Archived, label: t('Archived') },
@@ -40,7 +44,7 @@ export const planFields: ResourceField[] = [
4044
label: t('Name'),
4145
resourceFieldId: PlanTableResourceId.Name,
4246
sortable: true,
43-
width: 15,
47+
width: PLAN_FIELD_WIDTH_PERCENTAGE,
4448
},
4549
{
4650
filter: {
@@ -53,7 +57,7 @@ export const planFields: ResourceField[] = [
5357
label: t('Project'),
5458
resourceFieldId: PlanTableResourceId.Namespace,
5559
sortable: true,
56-
width: 15,
60+
width: PLAN_FIELD_WIDTH_PERCENTAGE,
5761
},
5862
{
5963
filter: {
@@ -65,7 +69,7 @@ export const planFields: ResourceField[] = [
6569
label: t('Source provider'),
6670
resourceFieldId: PlanTableResourceId.Source,
6771
sortable: true,
68-
width: 15,
72+
width: PLAN_FIELD_WIDTH_PERCENTAGE,
6973
},
7074
{
7175
filter: {
@@ -77,7 +81,7 @@ export const planFields: ResourceField[] = [
7781
label: t('Target project'),
7882
resourceFieldId: PlanTableResourceId.Destination,
7983
sortable: true,
80-
width: 15,
84+
width: PLAN_FIELD_WIDTH_PERCENTAGE,
8185
},
8286
{
8387
isVisible: true,

0 commit comments

Comments
 (0)