Skip to content

Commit f0affb5

Browse files
author
Codex Agent
committed
fix(ui): stabilize footer spinner sizing and user bubble wrapping
Context: UI redesign introduced oversized preferred width on streaming indicator and removed effective width constraint for user message bubbles. Change: Set spinner preferred width to 0 (kept max stretch behavior) and constrain user message text layout via JTextArea columns; removed ineffective maximumSize constraint in BorderLayout bubble. Risk: Low. UI layout behavior only; protocol/runtime logic untouched. Tests: ./gradlew.bat test --tests 'dev.curt.codexjb.ui.ChatPanelTest' --tests 'dev.curt.codexjb.ui.ChatPanelDebounceTest' (JDK 21) Verification: BUILD SUCCESSFUL (exit code 0). Swarm: awaiter agent used for targeted test execution.
1 parent 5188508 commit f0affb5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/main/kotlin/dev/curt/codexjb/ui/ChatPanel.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ class ChatPanel(
279279
footer.layout = BoxLayout(footer, BoxLayout.Y_AXIS)
280280

281281
// Row 1: Thin full-width streaming indicator
282-
spinner.preferredSize = Dimension(Int.MAX_VALUE, 2)
282+
spinner.preferredSize = Dimension(0, 2)
283283
spinner.maximumSize = Dimension(Int.MAX_VALUE, 2)
284284
spinner.alignmentX = Component.LEFT_ALIGNMENT
285285
footer.add(spinner)
@@ -744,11 +744,11 @@ class ChatPanel(
744744
val area = JTextArea(text)
745745
area.lineWrap = true
746746
area.wrapStyleWord = true
747+
area.columns = 50
747748
area.isEditable = false
748749
area.isOpaque = false
749750
area.foreground = ChatPalette.bubbleForeground
750751
area.border = null
751-
area.maximumSize = Dimension(450, Int.MAX_VALUE)
752752
bubble.add(area, BorderLayout.CENTER)
753753

754754
// Right-align user messages

0 commit comments

Comments
 (0)