mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
fix(table): move padding from rows to cells (#10499)
This commit is contained in:
@@ -19,7 +19,6 @@ $mat-row-horizontal-padding: 24px;
|
||||
border-bottom-width: 1px;
|
||||
border-bottom-style: solid;
|
||||
align-items: center;
|
||||
padding: 0 $mat-row-horizontal-padding;
|
||||
box-sizing: border-box;
|
||||
|
||||
// Workaround for https://goo.gl/pFmjJD in IE 11. Adds a pseudo
|
||||
@@ -32,8 +31,19 @@ $mat-row-horizontal-padding: 24px;
|
||||
}
|
||||
}
|
||||
|
||||
.mat-cell:first-child, .mat-header-cell:first-child {
|
||||
padding-left: $mat-row-horizontal-padding;
|
||||
}
|
||||
|
||||
.mat-cell:last-child, .mat-header-cell:last-child {
|
||||
padding-right: $mat-row-horizontal-padding;
|
||||
}
|
||||
|
||||
.mat-cell, .mat-header-cell {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
overflow: hidden;
|
||||
word-wrap: break-word;
|
||||
min-height: inherit;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user