IJPL-165254: vcs marker: Add gap to the left of the commit input field

(cherry picked from commit ec59b14a25491c69acd7c90e2262b6beed61a352)

IJ-CR-149651

GitOrigin-RevId: 821c54212056b6ea8a61d45cb9b7a0426f9d9ef1
This commit is contained in:
Aleksandr Krasilnikov
2024-11-05 17:29:00 +01:00
committed by intellij-monorepo-bot
parent 3076cb9bad
commit 2d971cffbb

View File

@@ -101,7 +101,11 @@ private class CommitChunkPanel(private val tracker: ChangelistsLocalLineStatusTr
.addToBottom(BorderLayoutPanel().addToRight(bottomWrapper).andTransparent())
// ui adjustment
centerPanel.andTransparent().withBackground(Spec.INPUT_BACKGROUND)
centerPanel
.andTransparent()
.withBackground(Spec.INPUT_BACKGROUND)
withBorder(JBUI.Borders.emptyLeft(Spec.PANEL_LEFT_GAP))
resetPreferredHeight()
andTransparent()
@@ -334,6 +338,8 @@ private fun adjustEditorSettings(editor: EditorEx) {
}
private object Spec {
const val PANEL_LEFT_GAP: Int = 12
val DEFAULT_WIDTH: Int
get() = JBUI.scale(255)