@@ -582,25 +582,31 @@ html {
582582/* Make tables responsive to avoid TOC overlap */
583583@media (min-width : 1280px ) {
584584 /* On XL screens where TOC is visible, make tables horizontally scrollable when needed*/
585- .docs .prose table {
585+ /* Exclude the post-categories table at the top of pages */
586+ .docs .prose table : not (.post-categories table ) {
586587 @apply block overflow-x-auto whitespace-nowrap;
587588 max-width : calc (100vw - 400px ); /* Account for TOC + nav + margins */
588589 }
589590
590- .docs .prose table thead ,
591- .docs .prose table tbody ,
592- .docs .prose table tr {
591+ .docs .prose table : not (. post-categories table ) thead ,
592+ .docs .prose table : not (. post-categories table ) tbody ,
593+ .docs .prose table : not (. post-categories table ) tr {
593594 @apply table w-full table-fixed;
594595 }
595596
596597 /* Table headers should break naturally at word boundaries */
597- .docs .prose table th {
598+ .docs .prose table : not (. post-categories table ) th {
598599 @apply whitespace-normal break-normal p-2;
599600 }
600601
601602 /* Table data cells can break more aggressively for long content */
602- .docs .prose table td {
603- @apply whitespace-normal break-words p-2;
603+ .docs .prose table : not (.post-categories table ) td {
604+ @apply whitespace-normal break-normal p-2;
605+ }
606+
607+ /* Prevent content from extending under the fixed "On this page" TOC */
608+ .docs .prose {
609+ @apply mr-64; /* 256px margin = 240px TOC width + 16px buffer */
604610 }
605611}
606612
0 commit comments