Skip to content

Commit

Permalink
Add special case for fixed MD tables
Browse files Browse the repository at this point in the history
  • Loading branch information
parafoxia committed Oct 12, 2024
1 parent 6c9d5ef commit ed9074f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/pages/sponsorships.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ _Prices last updated 4 Oct 2024._
<div className="flex justify-center mx-6 mt-4 font-sans text-white text-md sm:mx-10">
<ReactMarkdown
children={sponsorshipContentCol1}
className="font-sans text-white unreset markdown grow max-w-text shrink basis-0"
className="font-sans text-white unreset markdown grow max-w-text shrink basis-0 md-fixed-tables"
remarkPlugins={[remarkGfm, remarkSlug]}
rehypePlugins={[rehypeRaw]}
/>
Expand Down
10 changes: 6 additions & 4 deletions src/styles/markdown.scss
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,6 @@
@apply text-brand-blue;
}

table {
table-layout: fixed;
}

td,
th {
@apply px-3 py-2;
Expand All @@ -45,3 +41,9 @@
}
}
}

.md-fixed-tables {
table {
table-layout: fixed;
}
}

0 comments on commit ed9074f

Please sign in to comment.