Skip to content

Commit aa08434

Browse files
committed
Material: fix table overflow on small screens
1 parent eab926e commit aa08434

3 files changed

Lines changed: 15 additions & 1 deletion

File tree

Source/Blazorise.Material/Styles/components/_table.scss

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -287,6 +287,14 @@
287287
}
288288

289289
@media only screen and (max-width: 760px), (min-device-width: 768px) and (max-device-width: 1024px) {
290+
.mui-table:not(.mui-table-mobile) {
291+
--mui-table-cell-padding-x: 0.5rem;
292+
}
293+
294+
.mui-table:not(.mui-table-mobile) > :is(.mui-table-header, thead) > :is(.mui-table-row, tr) > :is(.mui-table-header-cell, th) {
295+
white-space: normal;
296+
}
297+
290298
.mui-table-mobile [data-caption]::before {
291299
content: attr(data-caption);
292300
}

Source/Blazorise.Material/wwwroot/blazorise.material.css

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7935,6 +7935,12 @@ body.modal-open {
79357935
}
79367936

79377937
@media only screen and (max-width: 760px), (min-device-width: 768px) and (max-device-width: 1024px) {
7938+
.mui-table:not(.mui-table-mobile) {
7939+
--mui-table-cell-padding-x: 0.5rem;
7940+
}
7941+
.mui-table:not(.mui-table-mobile) > :is(.mui-table-header, thead) > :is(.mui-table-row, tr) > :is(.mui-table-header-cell, th) {
7942+
white-space: normal;
7943+
}
79387944
.mui-table-mobile [data-caption]::before {
79397945
content: attr(data-caption);
79407946
}

Source/Blazorise.Material/wwwroot/blazorise.material.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)