Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tables don't scale #2161

Closed
dotnetjunkie opened this issue Apr 24, 2016 · 2 comments
Closed

Tables don't scale #2161

dotnetjunkie opened this issue Apr 24, 2016 · 2 comments
Labels
Support Support question

Comments

@dotnetjunkie
Copy link

dotnetjunkie commented Apr 24, 2016

When building tables using RST, the table isn't automatically kept 100% with its table cells auto-scaling. Instead, all the content of the cell is placed on the same line, causing the table to become horizontal scrollable. This might make sense in some environments with small displays, but it even happens when viewing content on a 4k screen.

This seems to be javascript behavior; when javascript is disabled, the tables get formatted correctly. Also, when removing the 'wy-table-responsive' class from the table's surrounding

block, tables get formatted correctly as well. Tables also get formatted correctly in the PDF.

I experienced this problem while writing documentation for the simpleinjector.readthedocs.org project, but you can also see this behavior with other projects, such as the table on this project's page.

This problem makes it practically impossible to use tables in the documentation, which is a severe limitation for our project. Sometimes, tables are the only way to properly format parts of the text.

Can this be fixed, or otherwise, are there ways for me around this limitation, or is it possible for me to tune the output of tables for my project only?

@agjohnson
Copy link
Contributor

For now, I'd use a custom stylesheet: readthedocs/sphinx_rtd_theme#117 (comment)

This was a design decision for the theme around table wrapping, though I agree that the experience around wide tables on large displays is generally poor.

@stsewd
Copy link
Member

stsewd commented Aug 31, 2018

Closing in favor of readthedocs/sphinx_rtd_theme#117

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Support Support question
Projects
None yet
Development

No branches or pull requests

3 participants