File tree Expand file tree Collapse file tree 1 file changed +4
-10
lines changed Expand file tree Collapse file tree 1 file changed +4
-10
lines changed Original file line number Diff line number Diff line change @@ -581,27 +581,21 @@ html {
581581
582582/* Make tables responsive to avoid TOC overlap */
583583@media (min-width : 1280px ) {
584- /* On XL screens where TOC is visible, make tables horizontally scrollable */
584+ /* On XL screens where TOC is visible, make tables horizontally scrollable when needed */
585585 .docs .prose table {
586- display : block;
587- overflow-x : auto;
588- white-space : nowrap;
586+ @apply block overflow-x-auto whitespace-nowrap;
589587 max-width : calc (100vw - 400px ); /* Account for TOC + nav + margins */
590588 }
591589
592590 .docs .prose table thead ,
593591 .docs .prose table tbody ,
594592 .docs .prose table tr {
595- display : table;
596- width : 100% ;
597- table-layout : fixed;
593+ @apply table w-full table-fixed;
598594 }
599595
600596 .docs .prose table td ,
601597 .docs .prose table th {
602- white-space : normal;
603- word-wrap : break-word;
604- padding : 0.5rem ;
598+ @apply whitespace-normal break-words p-2;
605599 }
606600}
607601
You can’t perform that action at this time.
0 commit comments