Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit dd134aa

Browse files
authored
Update table for mobile (github#36009)
1 parent 0ae5b6c commit dd134aa

File tree

1 file changed

+8
-0
lines changed
  • components/ui/MarkdownContent/stylesheets

1 file changed

+8
-0
lines changed

components/ui/MarkdownContent/stylesheets/table.scss

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,14 @@
1212
from expanding beyond the horizontal boundaries of the parent element. */
1313
table-layout: auto;
1414

15+
/* For mobile (small viewports) we need to fix the table because if the table
16+
is larger than the viewport it will force the width of the table causing issues
17+
with the header on scroll
18+
*/
19+
@media (max-width: 544px) {
20+
table-layout: fixed;
21+
}
22+
1523
code {
1624
font-size: 85%;
1725
padding: 0.2em 0.4em;

0 commit comments

Comments
 (0)