Skip to content

Commit f701aa6

Browse files
authored
Merge pull request #327 from cal-smith/table
fix(table): reduce size of checkbox column, and remove default width
2 parents e243b2c + 20fc30e commit f701aa6

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

src/table/table-header-item.class.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export class TableHeaderItem {
5050
*
5151
* @memberof TableHeaderItem
5252
*/
53-
style = {"width": "150px"};
53+
style = {};
5454

5555
/**
5656
* If true, sort is set to ascending, if false descending will be true.

src/table/table.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ import { I18n } from "./../i18n/i18n.module";
170170
<thead>
171171
<tr>
172172
<th *ngIf="model.hasExpandableRows()"></th>
173-
<th *ngIf="showSelectionColumn">
173+
<th *ngIf="showSelectionColumn" style="width: 10px;">
174174
<ibm-checkbox
175175
[size]="size !== ('lg' ? 'sm' : 'md')"
176176
[(ngModel)]="selectAllCheckbox"

src/table/table.stories.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ class TableStory implements OnInit, OnChanges {
5454
}),
5555
new TableHeaderItem({
5656
data: "hwer",
57-
style: {"width": "auto"},
5857
className: "my-class"
5958
})
6059
];
@@ -399,7 +398,7 @@ simpleModel.data = [
399398
[new TableItem({data: "Name 4"}), new TableItem({data: "twer"})]
400399
];
401400
simpleModel.header = [
402-
new TableHeaderItem({data: "Name"}), new TableHeaderItem({data: "hwer", style: {"width": "auto"} })
401+
new TableHeaderItem({data: "Name"}), new TableHeaderItem({data: "hwer" })
403402
];
404403

405404
const emptyModel = new TableModel();

0 commit comments

Comments
 (0)