Fix assertion table column widths in TestStepDialog

- Set fixed column widths (Type: 130px, Remove: 40px)
- Add minimum width (120px) on type combo box
- Value column stretches to fill remaining space

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
rob 2026-01-17 14:04:06 -04:00
parent 7110e82eca
commit 7516a9b5ed
1 changed files with 5 additions and 2 deletions

View File

@ -163,9 +163,11 @@ class TestStepDialog(QDialog):
# Assertions table
self.assertions_table = QTableWidget(0, 3)
self.assertions_table.setHorizontalHeaderLabels(["Type", "Value", ""])
self.assertions_table.horizontalHeader().setSectionResizeMode(0, QHeaderView.ResizeToContents)
self.assertions_table.horizontalHeader().setSectionResizeMode(0, QHeaderView.Fixed)
self.assertions_table.horizontalHeader().setSectionResizeMode(1, QHeaderView.Stretch)
self.assertions_table.horizontalHeader().setSectionResizeMode(2, QHeaderView.ResizeToContents)
self.assertions_table.horizontalHeader().setSectionResizeMode(2, QHeaderView.Fixed)
self.assertions_table.setColumnWidth(0, 130)
self.assertions_table.setColumnWidth(2, 40)
self.assertions_table.verticalHeader().setVisible(False)
self.assertions_table.setMaximumHeight(150)
assert_layout.addWidget(self.assertions_table)
@ -302,6 +304,7 @@ class TestStepDialog(QDialog):
# Type dropdown
type_combo = QComboBox()
type_combo.setMinimumHeight(28)
type_combo.setMinimumWidth(120)
for type_id, display_name, tooltip in self.ASSERTION_TYPES:
type_combo.addItem(display_name, type_id)
idx = type_combo.count() - 1