From 73d8a23b640bb829c329a72a507d8e64fe84f912 Mon Sep 17 00:00:00 2001 From: Bartosz Janusz Date: Tue, 11 Nov 2025 13:01:29 +0100 Subject: [PATCH] [gh] Fix clipped commented code outline in Island Theme (IJPL-214524) #IJPL-214524 Fixed GitOrigin-RevId: 93dfca249f76b08d2d7459b2a3d04a94510291c8 --- .../pullrequest/ui/comment/GHPRCommentedCodeFrameRenderer.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/github/github-core/src/org/jetbrains/plugins/github/pullrequest/ui/comment/GHPRCommentedCodeFrameRenderer.kt b/plugins/github/github-core/src/org/jetbrains/plugins/github/pullrequest/ui/comment/GHPRCommentedCodeFrameRenderer.kt index 0ef8bdaee644..7424c5cd6b4b 100644 --- a/plugins/github/github-core/src/org/jetbrains/plugins/github/pullrequest/ui/comment/GHPRCommentedCodeFrameRenderer.kt +++ b/plugins/github/github-core/src/org/jetbrains/plugins/github/pullrequest/ui/comment/GHPRCommentedCodeFrameRenderer.kt @@ -37,7 +37,7 @@ class CommentedCodeFrameRenderer( } override fun paint(editor: Editor, g: Graphics, r: Rectangle) { // gutter part - val x = 1f + val x = OUTER_GUTTER_FRAME_PADDING val width = (editor as? EditorEx)?.gutterComponentEx?.width?.toFloat() ?: 0f val (y, height) = editor.getYAxisValues() val path = createLeftOutlinePath(x, y, width, height) @@ -86,6 +86,7 @@ class CommentedCodeFrameRenderer( } companion object { + private const val OUTER_GUTTER_FRAME_PADDING = 2f private val color: Color = CodeReviewColorUtil.Review.LineFrame.border private val stroke: Stroke = BasicStroke(JBUIScale.scale(1f)) private val radius: Int get() = JBUIScale.scale(4)