Skip to content

Commit 2999f78

Browse files
committed
refactor(gui): adjust borders and padding in UI components #257
- Remove right border from `MessageView` center panel. - Update border color and padding in `EditorFragment` for consistency.
1 parent 41a9429 commit 2999f78

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

core/src/main/kotlin/cc/unitmesh/devti/gui/chat/MessageView.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ class MessageView(val message: String, val role: ChatRole, private val displayTe
4949

5050
centerPanel = JPanel(VerticalLayout(JBUI.scale(8)))
5151
centerPanel.isOpaque = false
52-
centerPanel.border = JBUI.Borders.emptyRight(8)
5352

5453
centerPanel.add(myNameLabel)
5554
add(centerPanel, BorderLayout.CENTER)

core/src/main/kotlin/com/intellij/temporary/gui/block/EditorFragment.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,13 +65,13 @@ class EditorFragment(private val editor: EditorEx, message: CompletableMessage)
6565
}.apply {
6666
border = JBUI.Borders.compound(
6767
JBUI.Borders.empty(10, 0),
68-
JBUI.Borders.customLine(JBColor(0xD4E1570, 0x474071))
68+
JBUI.Borders.customLine(JBColor.border())
6969
)
7070
isOpaque = false
7171

72-
addToLeft(EditorPadding(editor, 5))
72+
addToLeft(EditorPadding(editor, 2))
7373
addToCenter(editor.component)
74-
addToRight(EditorPadding(editor, 5))
74+
addToRight(EditorPadding(editor, 2))
7575
addToBottom(expandCollapseTextLabel)
7676
}
7777
}

0 commit comments

Comments
 (0)