From d19505af4c2d78fe42e7631732b948de4eaa3dfe Mon Sep 17 00:00:00 2001 From: Alex Ross <38270282+alexr00@users.noreply.github.com> Date: Wed, 27 Aug 2025 18:39:17 +0200 Subject: [PATCH] Handle single line PR description (#263618) --- .../browser/chatContentParts/media/chatPullRequestContent.css | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/vs/workbench/contrib/chat/browser/chatContentParts/media/chatPullRequestContent.css b/src/vs/workbench/contrib/chat/browser/chatContentParts/media/chatPullRequestContent.css index c99da1e77d8..df72d9464d9 100644 --- a/src/vs/workbench/contrib/chat/browser/chatContentParts/media/chatPullRequestContent.css +++ b/src/vs/workbench/contrib/chat/browser/chatContentParts/media/chatPullRequestContent.css @@ -39,7 +39,7 @@ display: none; position: absolute; right: 12px; - top: 26px; + top: max(8px, min(26px, calc(100% - 26px))); a { color: var(--vscode-textLink-foreground); @@ -54,7 +54,7 @@ background: var(--vscode-editor-background); .description-wrapper { - /* This mask fades out the end of the second line of text so the "see more" message can be displayed over it. */ + /* This mask fades out the end of text so the "see more" message can be displayed over it. */ mask-image: linear-gradient(to right, rgba(0, 0, 0, 1) calc(100% - 80px), rgba(0, 0, 0, 0) calc(100% - 57px)), linear-gradient(to top, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0) 20px, rgba(0, 0, 0, 1) 2px, rgba(0, 0, 0, 1) 100%); mask-repeat: no-repeat, no-repeat;