Skip to content

Commit a26d3a8

Browse files
committed
style(gui): improve chat panel UI with preferred height for progress bar #51
The chat panel's progress bar now has a preferred height set to 2 pixels, enhancing the user interface's consistency and aesthetics.
1 parent 5738d3d commit a26d3a8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/kotlin/cc/unitmesh/devti/gui/chat/ChatCodingPanel.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ import com.intellij.ui.components.JBLabel
2121
import com.intellij.ui.components.JBScrollPane
2222
import com.intellij.ui.components.panels.VerticalLayout
2323
import com.intellij.ui.dsl.builder.panel
24+
import com.intellij.ui.util.preferredHeight
2425
import com.intellij.util.ui.JBFont
2526
import com.intellij.util.ui.JBUI
2627
import com.intellij.util.ui.UIUtil
@@ -67,7 +68,7 @@ class ChatCodingPanel(private val chatCodingService: ChatCodingService, val disp
6768
myScrollPane.verticalScrollBar.autoscrolls = true
6869
myScrollPane.background = UIUtil.getListBackground()
6970

70-
progressBar = JProgressBar()
71+
progressBar = JProgressBar().apply { preferredHeight = JBUI.scale(2) }
7172

7273
val actionLink = ActionLink(AutoDevBundle.message("label.submit.issue")) {
7374
BrowserUtil.browse("https://github.com/unit-mesh/auto-dev/issues")

0 commit comments

Comments
 (0)