-
Notifications
You must be signed in to change notification settings - Fork 119
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(xod-client): make sidebars not affected by workspace width
Closes #1087
- Loading branch information
1 parent
e3055e2
commit e6c0dad
Showing
4 changed files
with
28 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 14 additions & 3 deletions
17
packages/xod-client/src/core/styles/components/Editor.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,18 @@ | ||
.Editor { | ||
flex-grow: 1; | ||
|
||
display: flex; | ||
flex-direction: row; | ||
align-items: stretch; | ||
display: grid; | ||
grid-template-columns: 100%; | ||
|
||
&.leftSidebarMaximized { | ||
grid-template-columns: $sidebar-width calc(100% - #{$sidebar-width}); | ||
} | ||
|
||
&.rightSidebarMaximized { | ||
grid-template-columns: calc(100% - #{$sidebar-width}) $sidebar-width; | ||
} | ||
|
||
&.leftSidebarMaximized.rightSidebarMaximized { | ||
grid-template-columns: $sidebar-width calc(100% - #{$sidebar-width * 2}) $sidebar-width; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters