pydata-sphinx-theme
pydata-sphinx-theme copied to clipboard
fix: improve display of table in the nbsphinx context
Fix #933
I force the table-layout to auto when the table is nested in a .html_render class
I updated the width of the pandas exampe to check to display
@JoerivanEngelen, @jesnie could you confirm that it solves the issue from you side as well ? I cheked the example you gave and the classes embedding the table were quite different than ours.
Is it possible for us to produce an example that shows the issue? In #958, I cherry-picked f24e6ee and 5a36dc5. To me both tables look fine.
With 9c74db8, the table looks like

Without 9c74db8, the table looks like

I don't think it's possible for us to use nbsphinx in our docs without disabling MyST-NB 🤔. Im +1 on merge once others confirm their bug is gone.
It may be worth merging this and releasing 0.11rc1 soon. A release candidate may make it easier for folks to test.