Skip to content
Merged
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
23 changes: 20 additions & 3 deletions src/app/elements/asset-tree/asset-tree.component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,25 @@
@content;
}

:host {
display: block;
height: 100%;
min-height: 0;
overflow: hidden;
}

.tree-container {
display: flex;
flex-direction: column;
height: 100%;
min-height: 0;
overflow: hidden;
background-color: var(--el-asset-tree-bg-color);

.tree-type {
flex: 0 0 30px;
min-height: 30px;
overflow: hidden;
transition: all 0.3s;

.tree-type-banner {
Expand Down Expand Up @@ -141,9 +153,10 @@

.tree-type-content {
position: relative;
flex: 1 1 auto;
padding: 1px;
min-height: 40px;
height: calc(100% - 31px);
min-height: 0;
height: auto;
background-color: var(--el-asset-tree-bg-color);
overflow: hidden;
scrollbar-gutter: stable both-edges;
Expand All @@ -170,7 +183,11 @@
}

&.expand-tree {
height: calc(100% - 31px);
display: flex;
flex: 1 1 0;
flex-direction: column;
min-height: 0;
height: auto;
}
}
}
Expand Down
43 changes: 36 additions & 7 deletions src/app/elements/left-bar/left-bar.component.scss
Original file line number Diff line number Diff line change
@@ -1,10 +1,23 @@
:host {
display: block;
height: 100%;
min-height: 0;
}

.sidebar {
display: flex;
flex-direction: column;
height: 100%;
min-height: 0;
width: 100%;
overflow: hidden;

.tree {
display: block;
display: flex;
flex: 1 1 auto;
flex-direction: column;
min-height: 0;
overflow: hidden;
}

.menu-icon {
Expand All @@ -22,11 +35,16 @@

.menu-icon {
display: block;
flex: 1 1 auto;
min-height: 0;
height: auto;
overflow-y: auto;
}
}

.organization {
display: flex;
flex: 0 0 30px;
flex-direction: column;
justify-content: center;
height: 30px;
Expand All @@ -42,26 +60,37 @@
}

.my-assets {
height: calc(100vh - 61px);
flex: 1 1 auto;
min-height: 0;
height: auto;
overflow: hidden;
color: var(--el-text-color-light);

&.has-org {
height: calc(100vh - 91px);
}

.overflow {
display: flex;
width: 100%;
height: 100%;
min-height: 0;
}

.ngx-scroll-overlay {
overflow: auto; // for FF
// The tree content owns vertical scrolling. A scrollable wrapper here
// creates a second scrollbar when more tree sections are added.
overflow: hidden;
}

elements-asset-tree {
display: block;
flex: 1 1 auto;
min-height: 0;
height: 100%;
overflow: hidden;
}
}

.footer-version {
display: flex;
flex: 0 0 30px;
align-items: center;
line-height: 30px;
font-size: 9pt;
Expand Down