File tree Expand file tree Collapse file tree 4 files changed +21
-3
lines changed Expand file tree Collapse file tree 4 files changed +21
-3
lines changed Original file line number Diff line number Diff line change 15
15
@include body-1-regular ($gray-7 );
16
16
text-align : center ;
17
17
word-break : break-word ;
18
+ flex : 1 1 auto ;
19
+ overflow : hidden ;
18
20
}
19
21
20
22
.controls {
Original file line number Diff line number Diff line change 4
4
@include subtitle-2 ;
5
5
display : inline-flex ;
6
6
align-items : center ;
7
- padding : 4px 8px ;
8
7
border-radius : 2px ;
9
8
10
9
.label {
Original file line number Diff line number Diff line change 2
2
@import ' color-palette' ;
3
3
4
4
.ht-panel {
5
- padding : 4 px ;
5
+ padding : 12 px 10 px ;
6
6
display : flex ;
7
7
flex-direction : column ;
8
8
23
23
overflow : auto ;
24
24
height : 100% ;
25
25
}
26
+
27
+ & .bordered {
28
+ border : 1px solid $gray-2 ;
29
+ border-radius : 10px ;
30
+ }
26
31
}
27
32
28
33
.disabled {
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ import {
11
11
ViewChild ,
12
12
ViewContainerRef
13
13
} from '@angular/core' ;
14
+ import { Color } from '@hypertrace/common' ;
14
15
import { PanelBodyComponent } from './body/panel-body.component' ;
15
16
import { PanelHeaderComponent } from './header/panel-header.component' ;
16
17
@@ -19,7 +20,12 @@ import { PanelHeaderComponent } from './header/panel-header.component';
19
20
styleUrls : [ './panel.component.scss' ] ,
20
21
changeDetection : ChangeDetectionStrategy . OnPush ,
21
22
template : `
22
- <div class="ht-panel fill-container" [htLayoutChangeTrigger]="this.expanded">
23
+ <div
24
+ class="ht-panel fill-container"
25
+ [htLayoutChangeTrigger]="this.expanded"
26
+ [style.backgroundColor]="this.backgroundColor"
27
+ [ngClass]="{ bordered: this.showBorder }"
28
+ >
23
29
<div *ngIf="this.header" [ngClass]="{ disabled: this.disabled, expanded: this.expanded }" class="header">
24
30
<ng-container #headerContainer></ng-container>
25
31
</div>
@@ -36,6 +42,12 @@ export class PanelComponent implements AfterViewInit {
36
42
@Input ( )
37
43
public disabled : boolean = false ;
38
44
45
+ @Input ( )
46
+ public backgroundColor : string = Color . White ;
47
+
48
+ @Input ( )
49
+ public showBorder : boolean = false ;
50
+
39
51
@Output ( )
40
52
public readonly expandedChange : EventEmitter < boolean > = new EventEmitter ( ) ;
41
53
You can’t perform that action at this time.
0 commit comments