Skip to content

Commit 185f19b

Browse files
committed
fix(doc-manager): fix sample styles
1 parent 34cf776 commit 185f19b

File tree

2 files changed

+22
-12
lines changed

2 files changed

+22
-12
lines changed
Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
1-
<div class="sample-column">
2-
<span>Dimensions:</span>
1+
<div class="sample-flex-row">
32
<igx-combo #combo class="combo" [itemsMaxHeight]="250" (selectionChanging)="handleChange($event)"
4-
[data]="dimensions" [displayKey]="'memberName'" [(ngModel)]="selected"
5-
placeholder="Dimension(s)" searchPlaceholder="Search...">
3+
[data]="dimensions" [displayKey]="'memberName'" [(ngModel)]="selected"
4+
placeholder="Dimension(s)" searchPlaceholder="Search...">
65
</igx-combo>
7-
<h4>Display Density</h4>
86
<div class="density-chooser">
97
<igx-buttongroup>
10-
<button igxButton [disabled]="grid1.displayDensity === compact"
11-
(click)="setDensity('compact')">Compact</button>
8+
<button igxButton [disabled]="grid1.displayDensity === comfortable" (click)="setDensity('comfortable')">Comfortable</button>
129
<button igxButton [disabled]="grid1.displayDensity === cosy" (click)="setDensity('cosy')">Cosy</button>
13-
<button igxButton [disabled]="grid1.displayDensity === comfortable"
14-
(click)="setDensity('comfortable')">Comfortable</button>
10+
<button igxButton [disabled]="grid1.displayDensity === compact" (click)="setDensity('compact')">Compact</button>
1511
</igx-buttongroup>
1612
</div>
17-
<igx-pivot-grid #grid1 [data]="origData" [width]="'100%'" [height]="'100%'" [pivotConfiguration]="pivotConfigHierarchy"
18-
(dimensionsChange)='dimensionChange($event)'></igx-pivot-grid>
1913
</div>
14+
<igx-pivot-grid
15+
#grid1 [data]="origData"
16+
[pivotConfiguration]="pivotConfigHierarchy"
17+
(dimensionsChange)='dimensionChange($event)'>
18+
</igx-pivot-grid>
19+

src/app/pivot-grid/pivot-grid.sample.scss

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,24 @@
55
}
66

77
.density-chooser {
8-
margin-bottom: 16px;
98
max-width: 40%;
109
}
1110

1211
igx-pivot-grid {
1312
flex: 1;
1413
}
1514

15+
.sample-flex-row {
16+
align-items: center;
17+
display: flex;
18+
gap: 16px;
19+
margin-bottom: 16px;
20+
21+
> * {
22+
flex: 1;
23+
}
24+
}
25+
1626
:host ::ng-deep {
1727
.upFont {
1828
color: lightgreen;

0 commit comments

Comments
 (0)