Move dashboard properties, fix scroll (#758)

* started moving properties to home tab

* moved properties

* refactored panel in dashboard

* fix errors

* fix miss-naming
This commit is contained in:
Anthony Dresser
2018-02-23 13:34:11 -08:00
committed by GitHub
parent fdc956e116
commit f9d8f479b5
10 changed files with 156 additions and 115 deletions

View File

@@ -8,10 +8,19 @@
border-top-width: 1px;
border-top-style: solid;
box-sizing: border-box;
display: flex;
flex-direction: column;
}
panel {
display: block;
height: 100%;
width: 100%;
}
.tabbedPanel .composite.title {
display: flex;
flex: 0 0 auto;
}
.tabbedPanel .tabList {
@@ -70,8 +79,9 @@
height: 100%;
}
.tabbedPanel.vertical > .tab-content {
.tabbedPanel > .tab-content {
flex: 1;
position: relative;
}
.tabbedPanel.vertical > .title > .tabList {

View File

@@ -40,7 +40,7 @@ let idPool = 0;
@Component({
selector: 'panel',
template: `
<div class="tabbedPanel fullsize" #tabbedPanel style="position: absolute">
<div class="tabbedPanel fullsize" #tabbedPanel>
<div *ngIf="!options.showTabsWhenOne ? _tabs.length !== 1 : true" class="composite title">
<div class="tabList">
<div *ngFor="let tab of _tabs">
@@ -52,8 +52,10 @@ let idPool = 0;
</div>
</div>
</div>
<div class="tab-content fullsize">
<ng-content class="fullsize"></ng-content>
<div class="tab-content">
<div class="fullsize" style="position: absolute">
<ng-content></ng-content>
</div>
</div>
</div>
`