fix(ui): enlarge AI edit input field in file edit dialog
CI / test (pull_request) Canceled after 0s

- Increase minimum height to 38px for better tap/click target
- Add padding and font-size for improved readability
- Match button height to input for visual alignment
- Add vertical spacing between editor and AI row

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
thanhnv
2026-09-08 23:06:04 +09:00
co-authored by Claude Opus 5
parent b746917f6f
commit 4163437e4f
+9
View File
@@ -96,11 +96,20 @@ class FileEditDialog(QDialog):
# ---- AI edit row ---------------------------------------------------
ai_row = QHBoxLayout()
ai_row.setContentsMargins(0, 6, 0, 2)
self.instruction_edit = QLineEdit()
self.instruction_edit.setPlaceholderText(tr("fileedit.instruction_placeholder"))
self.instruction_edit.setMinimumHeight(38)
self.instruction_edit.setStyleSheet(
"QLineEdit { padding: 8px 12px; font-size: 13px; border-radius: 6px; }"
)
self.instruction_edit.returnPressed.connect(self._ai_edit)
self.ai_btn = QPushButton(tr("fileedit.ai_btn"))
self.ai_btn.setIcon(icon("sparkle"))
self.ai_btn.setMinimumHeight(38)
self.ai_btn.setStyleSheet(
"QPushButton { padding: 0 16px; font-size: 13px; border-radius: 6px; }"
)
self.ai_btn.clicked.connect(self._ai_edit)
ai_row.addWidget(self.instruction_edit, 1)
ai_row.addWidget(self.ai_btn)