Skip to content

Commit

Permalink
feat(vscode): Gain unused scrollbar space for design canvas
Browse files Browse the repository at this point in the history
fixes KaotoIO/vscode-kaoto#465

Signed-off-by: Aurélien Pupier <[email protected]>
  • Loading branch information
apupier committed Feb 9, 2024
1 parent 1fff9f8 commit 151e227
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions packages/ui/src/multiplying-architecture/KaotoEditor.scss
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,13 @@
position: relative;
overflow: scroll;
}

// Tab content for Design canvas is not scrollable
section#{&}__tab-content_design-canvas {
flex-grow: 1;
flex-shrink: 1;
position: relative;
}
}

div[data-envelope-context='vscode'].shell .pf-v5-c-toolbar {
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/src/multiplying-architecture/KaotoEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export const KaotoEditor = () => {
<Tab
isHidden={SCHEMA_TABS[resource.getType()].indexOf(TabList.Design) === -1}
eventKey={TabList.Design}
className="shell__tab-content"
className="shell__tab-content_design-canvas"
title={
<>
<TabTitleIcon>
Expand Down

0 comments on commit 151e227

Please sign in to comment.