mirror of
https://github.com/harvester/harvester-ui-extension.git
synced 2026-08-16 20:59:16 +00:00
refactor: fixed the table column
Signed-off-by: Andy Lee <andy.lee@suse.com>
This commit is contained in:
parent
88ef562807
commit
425d26f7ea
@ -137,27 +137,28 @@ const vmHeaders = [
|
|||||||
value: 'name',
|
value: 'name',
|
||||||
sort: ['name'],
|
sort: ['name'],
|
||||||
subLabel: t('harvester.addons.vmMigration.generic.identifier'),
|
subLabel: t('harvester.addons.vmMigration.generic.identifier'),
|
||||||
|
width: 200,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'os',
|
name: 'os',
|
||||||
labelKey: 'harvester.addons.vmMigration.reviewMigration.columns.os',
|
labelKey: 'harvester.addons.vmMigration.reviewMigration.columns.os',
|
||||||
value: 'os',
|
value: 'os',
|
||||||
sort: ['os'],
|
sort: ['os'],
|
||||||
width: 180,
|
width: 140,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'resources',
|
name: 'resources',
|
||||||
labelKey: 'harvester.addons.vmMigration.reviewMigration.columns.resources',
|
labelKey: 'harvester.addons.vmMigration.reviewMigration.columns.resources',
|
||||||
value: 'resources',
|
value: 'resources',
|
||||||
sort: false,
|
sort: false,
|
||||||
width: 140,
|
width: 120,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'powerState',
|
name: 'powerState',
|
||||||
labelKey: 'harvester.addons.vmMigration.reviewMigration.columns.powerState',
|
labelKey: 'harvester.addons.vmMigration.reviewMigration.columns.powerState',
|
||||||
value: 'powerState',
|
value: 'powerState',
|
||||||
sort: ['powerState'],
|
sort: ['powerState'],
|
||||||
width: 130,
|
width: 100,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'networkMapping',
|
name: 'networkMapping',
|
||||||
@ -165,6 +166,7 @@ const vmHeaders = [
|
|||||||
value: 'networkMapping',
|
value: 'networkMapping',
|
||||||
sort: ['networkMapping'],
|
sort: ['networkMapping'],
|
||||||
subLabel: t('harvester.addons.vmMigration.reviewMigration.columns.sourceTarget'),
|
subLabel: t('harvester.addons.vmMigration.reviewMigration.columns.sourceTarget'),
|
||||||
|
width: 220,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'storageMapping',
|
name: 'storageMapping',
|
||||||
@ -172,6 +174,7 @@ const vmHeaders = [
|
|||||||
value: 'storageMapping',
|
value: 'storageMapping',
|
||||||
sort: ['storageMapping'],
|
sort: ['storageMapping'],
|
||||||
subLabel: t('harvester.addons.vmMigration.reviewMigration.columns.sourceTarget'),
|
subLabel: t('harvester.addons.vmMigration.reviewMigration.columns.sourceTarget'),
|
||||||
|
width: 220,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'actions',
|
name: 'actions',
|
||||||
@ -577,8 +580,14 @@ defineExpose({ startMigration: startMigrationAction });
|
|||||||
}
|
}
|
||||||
|
|
||||||
.vm-sortable-table {
|
.vm-sortable-table {
|
||||||
|
:deep(table) {
|
||||||
|
table-layout: fixed;
|
||||||
|
}
|
||||||
|
|
||||||
:deep(td) {
|
:deep(td) {
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
}
|
}
|
||||||
|
|
||||||
:deep(th:first-child),
|
:deep(th:first-child),
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user