Skip to content

Commit 58a25ef

Browse files
reggiCopilot
andcommitted
fix: prevent inline code from wrapping in table cells
Adds white-space: nowrap to code elements inside table cells so flags like --provenance don't break across lines. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 17d5bac commit 58a25ef

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/mdx/components.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,11 @@ export const Table = styled.table`
215215
border-top-width: 1px;
216216
}
217217
218+
td code,
219+
th code {
220+
white-space: nowrap;
221+
}
222+
218223
td a {
219224
color: var(--fgColor-default, #1f2328);
220225
text-decoration: underline;

0 commit comments

Comments
 (0)