Skip to content

Commit e02876a

Browse files
committed
Fix param table horizontal scaling by removing fixed column widths
1 parent dabe0d5 commit e02876a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/lib/components/api/DocstringRenderer.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -418,13 +418,15 @@
418418
/* Parameter/Attribute tables - panel style */
419419
.docstring-content :global(.param-table-wrapper) {
420420
margin: var(--space-md) 0;
421+
overflow-x: auto;
421422
}
422423
423424
.docstring-content :global(.param-table) {
424425
width: 100%;
425426
border-collapse: separate;
426427
border-spacing: 0;
427428
font-size: var(--font-base);
429+
table-layout: auto;
428430
}
429431
430432
/* Header styled like panel-header */
@@ -472,7 +474,6 @@
472474
}
473475
474476
.docstring-content :global(.param-table .param-name) {
475-
width: 1%;
476477
white-space: nowrap;
477478
}
478479
@@ -487,7 +488,6 @@
487488
}
488489
489490
.docstring-content :global(.param-table .param-type) {
490-
width: 1%;
491491
white-space: nowrap;
492492
}
493493

0 commit comments

Comments
 (0)