mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-25 01:04:02 +08:00
Update experiments table column min width [SCI-10393] (#7265)
This commit is contained in:
parent
b3e2182ce6
commit
14b962570e
1 changed files with 10 additions and 6 deletions
|
@ -112,23 +112,26 @@ export default {
|
||||||
flex: 1,
|
flex: 1,
|
||||||
headerName: this.i18n.t('experiments.card.name'),
|
headerName: this.i18n.t('experiments.card.name'),
|
||||||
sortable: true,
|
sortable: true,
|
||||||
cellRenderer: NameRenderer
|
cellRenderer: NameRenderer,
|
||||||
|
minWidth: 150
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
field: 'code',
|
field: 'code',
|
||||||
headerName: this.i18n.t('experiments.id'),
|
headerName: this.i18n.t('experiments.id'),
|
||||||
sortable: true
|
sortable: true,
|
||||||
|
minWidth: 80
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
field: 'created_at',
|
field: 'created_at',
|
||||||
headerName: this.i18n.t('experiments.card.start_date'),
|
headerName: this.i18n.t('experiments.card.start_date'),
|
||||||
sortable: true,
|
sortable: true,
|
||||||
minWidth: 130
|
minWidth: 110
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
field: 'updated_at',
|
field: 'updated_at',
|
||||||
headerName: this.i18n.t('experiments.card.modified_date'),
|
headerName: this.i18n.t('experiments.card.modified_date'),
|
||||||
sortable: true
|
sortable: true,
|
||||||
|
minWidth: 110
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
|
@ -145,7 +148,7 @@ export default {
|
||||||
headerName: this.i18n.t('experiments.card.completed_task'),
|
headerName: this.i18n.t('experiments.card.completed_task'),
|
||||||
cellRenderer: CompletedTasksRenderer,
|
cellRenderer: CompletedTasksRenderer,
|
||||||
sortable: true,
|
sortable: true,
|
||||||
minWidth: 120
|
minWidth: 110
|
||||||
});
|
});
|
||||||
columns.push({
|
columns.push({
|
||||||
field: 'description',
|
field: 'description',
|
||||||
|
@ -153,7 +156,8 @@ export default {
|
||||||
sortable: true,
|
sortable: true,
|
||||||
cellStyle: { 'white-space': 'normal' },
|
cellStyle: { 'white-space': 'normal' },
|
||||||
cellRenderer: DescriptionRenderer,
|
cellRenderer: DescriptionRenderer,
|
||||||
autoHeight: true
|
autoHeight: true,
|
||||||
|
minWidth: 110
|
||||||
});
|
});
|
||||||
|
|
||||||
return columns;
|
return columns;
|
||||||
|
|
Loading…
Reference in a new issue