Skip to content

Commit 40478c6

Browse files
committed
Allow type column to wrap with word-break for long types
1 parent e02876a commit 40478c6

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/lib/components/api/DocstringRenderer.svelte

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -488,7 +488,7 @@
488488
}
489489
490490
.docstring-content :global(.param-table .param-type) {
491-
white-space: nowrap;
491+
word-break: break-word;
492492
}
493493
494494
.docstring-content :global(.param-table .param-type code) {
@@ -498,13 +498,15 @@
498498
background: none;
499499
border: none;
500500
padding: 0;
501+
word-break: break-word;
501502
}
502503
503504
/* Type references in parameter tables */
504505
.docstring-content :global(.param-table .type-ref) {
505506
font-family: var(--font-mono);
506507
font-size: var(--font-base);
507508
color: var(--text-muted);
509+
word-break: break-word;
508510
}
509511
510512
.docstring-content :global(.param-table .type-link) {

0 commit comments

Comments
 (0)