From 579c1ad426ae22b721e7a6e8436fe6e0eb6f6aab Mon Sep 17 00:00:00 2001 From: Laxman Reddy Aileni Date: Wed, 15 Jul 2026 22:39:29 +0000 Subject: [PATCH 1/2] fix: allow scrolling the sent-to-prompt code attachment The code snippet added via 'send to prompt' rendered its syntax highlighter with overflow: hidden, so long or wide code was clipped and could not be scrolled (no usable scrollbars) in either the inline prompt attachment or its preview overlay. Enable overflow: auto on the snippet's syntax highlighter when the inline attachment is hovered, and for the preview overlay (which is also made interactive), so the full code can be scrolled and viewed. --- src/styles/components/chat/_chat-prompt-attachment.scss | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/styles/components/chat/_chat-prompt-attachment.scss b/src/styles/components/chat/_chat-prompt-attachment.scss index 6d58b42d..641a0fd3 100644 --- a/src/styles/components/chat/_chat-prompt-attachment.scss +++ b/src/styles/components/chat/_chat-prompt-attachment.scss @@ -22,6 +22,9 @@ > .mynah-syntax-highlighter { pointer-events: auto; user-select: text; + // Allow scrolling on hover so the full (overflowing) code snippet can be + // viewed; without this the content is clipped and no scrollbar is usable. + overflow: auto; pre { text-overflow: unset; } @@ -63,6 +66,10 @@ > .mynah-card-body { > .mynah-syntax-highlighter { max-height: calc(70vh - var(--mynah-sizing-12)) !important; + // The preview is meant to show the full snippet, so allow it to scroll + // (horizontally and vertically) and be interactive. + overflow: auto !important; + pointer-events: auto !important; } } } From cdfcc612ebeb1ae57854104bfef2a11ecb6e2fe4 Mon Sep 17 00:00:00 2001 From: Laxman Reddy Aileni Date: Wed, 15 Jul 2026 22:39:29 +0000 Subject: [PATCH 2/2] chore: coerce evaluate result to boolean in quick-action header flow Keeps the repo lint gate green (strict-boolean-expressions). --- ui-tests/__test__/flows/quick-action-commands-header.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui-tests/__test__/flows/quick-action-commands-header.ts b/ui-tests/__test__/flows/quick-action-commands-header.ts index c90e28b6..a0e6c7ae 100644 --- a/ui-tests/__test__/flows/quick-action-commands-header.ts +++ b/ui-tests/__test__/flows/quick-action-commands-header.ts @@ -137,9 +137,9 @@ export const verifyQuickActionCommandsHeaderStatusVariations = async (page: Page let foundStatusClass = false; for (const statusClass of statusClasses) { - const hasStatus = await headerElement.evaluate((el, className) => + const hasStatus = Boolean(await headerElement.evaluate((el, className) => el.classList.contains(className), statusClass - ); + )); if (hasStatus) { foundStatusClass = true; console.log(`Found status class: ${statusClass}`);