From e449fd0eda116f5a529ff12f7b3e5719aeac52b3 Mon Sep 17 00:00:00 2001 From: Charles Hacskaylo Date: Thu, 29 Feb 2024 11:26:51 -0800 Subject: [PATCH] Fix visible toolbar overflow (#7037) * Closes #7036 - CSS fix to prevent toolbar overrun of main view area. * a11y: add label to pane handles * test(visual): toolbar overflow --------- Co-authored-by: Jesse Mazzella Co-authored-by: John Hill --- e2e/tests/visual-a11y/displayLayout.visual.spec.js | 10 ++++++++++ src/ui/layout/PaneContainer.vue | 11 ++++++++++- src/ui/layout/pane.scss | 3 ++- 3 files changed, 22 insertions(+), 2 deletions(-) diff --git a/e2e/tests/visual-a11y/displayLayout.visual.spec.js b/e2e/tests/visual-a11y/displayLayout.visual.spec.js index e19ba61bf9..91d875c655 100644 --- a/e2e/tests/visual-a11y/displayLayout.visual.spec.js +++ b/e2e/tests/visual-a11y/displayLayout.visual.spec.js @@ -93,4 +93,14 @@ test.describe('Visual - Display Layout', () => { await page.getByLabel('Parent Layout Layout', { exact: true }).click(); await percySnapshot(page, `Parent outer layout selected (theme: '${theme}')`); }); + + test('Toolbar does not overflow into inspector', async ({ page, theme }) => { + test.info().annotations.push({ + type: 'issue', + description: 'https://github.com/nasa/openmct/issues/7036' + }); + await page.getByLabel('Expand Inspect Pane').click(); + await page.getByLabel('Resize Inspect Pane').dragTo(page.getByLabel('X:')); + await percySnapshot(page, `Toolbar does not overflow into inspector (theme: '${theme}')`); + }); }); diff --git a/src/ui/layout/PaneContainer.vue b/src/ui/layout/PaneContainer.vue index 173e8dfedf..06960ece92 100644 --- a/src/ui/layout/PaneContainer.vue +++ b/src/ui/layout/PaneContainer.vue @@ -21,7 +21,13 @@ -->