Skip to content
This repository was archived by the owner on Sep 4, 2020. It is now read-only.

Commit 6d16abb

Browse files
Merge pull request #8 from hypertrace/explorer-layout
feat: update explorer layout to better use space
2 parents 01df539 + d723851 commit 6d16abb

File tree

4 files changed

+9
-3
lines changed

4 files changed

+9
-3
lines changed

projects/components/src/panel/panel.component.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
border-radius: 2px;
1111

1212
&.expanded {
13-
margin-bottom: 10px;
13+
margin-bottom: 8px;
1414
}
1515

1616
.header-content {

projects/dashboards/src/widgets/header/widget-header.model.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,4 +49,10 @@ export class WidgetHeaderModel {
4949
} as ModelModelPropertyTypeInstance
5050
})
5151
public link?: LinkWidgetModel;
52+
53+
@ModelProperty({
54+
key: 'top-margin',
55+
type: BOOLEAN_PROPERTY.type
56+
})
57+
public topMargin?: boolean = false;
5258
}

projects/distributed-tracing/src/shared/dashboard/widgets/table/table-widget-renderer.component.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
width: 100%;
99
}
1010

11-
.with-header {
11+
.header-margin {
1212
margin-top: 16px;
1313
}
1414
}

projects/distributed-tracing/src/shared/dashboard/widgets/table/table-widget-renderer.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import { TableWidgetModel } from './table-widget.model';
2121
>
2222
<htc-table
2323
class="table"
24-
[ngClass]="{ 'with-header': this.model.header }"
24+
[ngClass]="{ 'header-margin': this.model.header?.topMargin }"
2525
[columnConfigs]="this.columnDefs"
2626
[mode]="this.model.mode"
2727
[display]="this.model.style"

0 commit comments

Comments
 (0)