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

Wrap tables in scrollable div #1827

Merged
merged 2 commits into from
May 22, 2024
Merged

Conversation

gabalafou
Copy link
Collaborator

Fixes #1824.

@@ -81,9 +81,17 @@ def visit_table(self, node):
if "align" in node:
classes.append(f'table-{node["align"]}')

# put table within a scrollable container because overflow on display: table does nothing
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's actually the width property that doesn't really do anything other than act as a kind of minimum width for the table

Copy link

github-actions bot commented May 21, 2024

Coverage report

Click to see where and how coverage changed

FileStatementsMissingCoverageCoverage
(new stmts)
Lines missing
  src/pydata_sphinx_theme
  translator.py 85, 92-93
Project Total  

This report was generated by python-coverage-comment-action

@Carreau
Copy link
Collaborator

Carreau commented May 22, 2024

Let's try.

@Carreau Carreau merged commit 5e3eb40 into pydata:main May 22, 2024
18 checks passed
@Carreau Carreau added tag: design Items related to design tasks or improvements tag: CSS CSS and SCSS related issues labels May 22, 2024
@gabalafou gabalafou mentioned this pull request May 27, 2024
ivanov pushed a commit to ivanov/pydata-sphinx-theme that referenced this pull request Jun 5, 2024
Carreau pushed a commit that referenced this pull request Jun 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tag: CSS CSS and SCSS related issues tag: design Items related to design tasks or improvements
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Large table overflowing (hidden by right sidebar) without horizontal scrollbar
2 participants