Skip to content

Commit ba6c9d9

Browse files
committed
fix(clients): dialog is too small to show full verification result
1 parent c5abcd9 commit ba6c9d9

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

src/main/kotlin/com/github/blarc/ai/commits/intellij/plugin/settings/clients/LLMClientPanel.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ abstract class LLMClientPanel(
119119

120120
button(message("settings.verifyToken")) { verifyConfiguration() }
121121
.align(AlignX.RIGHT)
122+
.align(AlignY.TOP)
122123
.widthGroup("button")
123124
}
124125
}

src/main/kotlin/com/github/blarc/ai/commits/intellij/plugin/settings/clients/LLMClientService.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ abstract class LLMClientService<T : LLMClientConfiguration>(private val cs: Coro
4747
label.icon = AllIcons.General.InspectionsOK
4848
}, onError = {
4949
// This can't be called from EDT thread, because dialog blocks the EDT thread
50-
label.text = it.wrap(80)
50+
label.text = it.wrap(60)
5151
label.icon = AllIcons.General.InspectionsError
5252
})
5353
}

src/main/kotlin/com/github/blarc/ai/commits/intellij/plugin/settings/clients/LLMClientTable.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,8 @@ class LLMClientTable {
133133
llmClient.panel().create()
134134
}.apply {
135135
isResizable = false
136-
minimumSize = Dimension(max(size.width, 500), max(size.height, 300))
136+
// Add 200 so there is space for verification message.
137+
minimumSize = Dimension(max(size.width, 500), max(size.height, 300) + 200)
137138
}
138139

139140
private fun getLlmClients(newLLMClientConfiguration: LLMClientConfiguration?): List<LLMClientConfiguration> {

0 commit comments

Comments
 (0)