Skip to content

Large table overflowing (hidden by right sidebar) without horizontal scrollbar #1824

@jorisvandenbossche

Description

@jorisvandenbossche

Large tables can overflow, but without visual scrollbar to indicate this and help scrolling. This is noticeable in our own example from the kitchen sink (https://pydata-sphinx-theme.readthedocs.io/en/latest/examples/kitchen-sink/tables.html#giant-tables):

image

(it seems it is already like this in several releases, I noticed that in 0.9 it actually just didn't hide the overflow: https://pydata-sphinx-theme.readthedocs.io/en/v0.9.0/demo/kitchen-sink/lists-and-tables.html#giant-tables)

From quickly playing with the browser dev tools, I noticed that changing the display to frim table to block made it add a horizontal scrollbar:

// ensure table will fit in the article width and make them y-scrollable
table {
@include table-colors;
display: table;
overflow: auto;

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions