refactor: fixed the table column

Signed-off-by: Andy Lee <andy.lee@suse.com>
This commit is contained in:
Andy Lee 2026-07-23 17:14:52 +08:00
parent 88ef562807
commit 425d26f7ea
No known key found for this signature in database
GPG Key ID: 39DC4436AE3564D5

View File

@ -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),