Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions src/styles/components/chat/_chat-prompt-attachment.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down Expand Up @@ -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;
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions ui-tests/__test__/flows/quick-action-commands-header.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}`);
Expand Down
Loading