Skip to content

Commit

Permalink
fix(data-grid): fix pinnable column cell width issue
Browse files Browse the repository at this point in the history
  • Loading branch information
nzbin committed Jul 18, 2020
1 parent 925aa5a commit 7c3f1ca
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion projects/demos/src/app/data-grid/data-grid.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

<p>
<a mat-raised-button color="accent"
href="https://nzbin.gitbook.io/material-extensions/data-grid" target="_blank">API</a>
href="https://nzbin.gitbook.io/material-extensions/data-grid" target="_blank">API Reference</a>
</p>

<ng-container *ngIf="route.data | async as data">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<div class="mb-3">
<div>
<mat-checkbox [(ngModel)]="rowSelectable">Row selectable</mat-checkbox>
<mat-checkbox class="mx-3" [(ngModel)]="hideRowSelectionCheckbox">Hide checkbox</mat-checkbox>
<mat-checkbox [(ngModel)]="hideRowSelectionCheckbox">Hide checkbox</mat-checkbox>
<mat-radio-group [(ngModel)]="multiSelectable">
<mat-radio-button [value]="false">Single</mat-radio-button>
<mat-radio-button [value]="true" class="mx-3">Multiple</mat-radio-button>
<mat-radio-button [value]="true">Multiple</mat-radio-button>
</mat-radio-group>
</div>

Expand Down
1 change: 1 addition & 0 deletions projects/extensions/data-grid/grid.component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@
.mat-cell {
min-width: 80px;
padding: 4px 10px;
box-sizing: border-box;
}

.mat-cell:first-of-type,
Expand Down

0 comments on commit 7c3f1ca

Please sign in to comment.