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
10 changes: 8 additions & 2 deletions src/styles/components/_sheet.scss
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,9 @@
border-radius: 0;
height: 100%;
overflow-x: hidden;
overflow-y: scroll;
// Only show the scrollbar when content overflows, avoiding a permanent
// (often empty) scrollbar in the fullscreen sheet.
overflow-y: auto;
}

> .mynah-card-body {
Expand Down Expand Up @@ -126,7 +128,11 @@
gap: var(--mynah-sizing-4);
align-items: stretch;
flex: 1;
overflow-y: scroll;
// Use auto so the scrollbar only appears when the content actually
// overflows. With 'scroll' the sheet body always renders a scrollbar,
// which combined with the inner scrollable list (e.g. the MCP view)
// produced a redundant second scrollbar wrapping the whole panel.
overflow-y: auto;
overflow-x: hidden;
> .mynah-sheet-header-status {
box-shadow: none;
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