Skip to content

DOC Add horizontal scrolling for wide dataframes#34155

Draft
jeremiedbb wants to merge 1 commit into
scikit-learn:mainfrom
jeremiedbb:enable-scrolling-dataframes
Draft

DOC Add horizontal scrolling for wide dataframes#34155
jeremiedbb wants to merge 1 commit into
scikit-learn:mainfrom
jeremiedbb:enable-scrolling-dataframes

Conversation

@jeremiedbb
Copy link
Copy Markdown
Member

No description provided.

Copy link
Copy Markdown
Member

@DeaMariaLeon DeaMariaLeon left a comment

Choose a reason for hiding this comment

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

Maybe you want to use the following instead of the selector div.rendered_html (and I think we don't need the max-width).

It works locally. Yeah: locally. :)

.output_subarea.output_html.rendered_html.output_result {
  overflow-x: auto;
}

The thing is, now all wide outputs will be able to scroll. On the other hand, if we only want to target a table, we need to wrap it in a block or something. I think.

I didn't try wrapping the table in a new block or div. I just tried a couple of plots with what I suggest above, and it seems fine.

@DeaMariaLeon
Copy link
Copy Markdown
Member

I forgot to say that it may already work with your selector. But when I first tried with the current doc build, I couldn't see the scroll. I may be missing something.
Feel free to ignore if I just added noise. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants