Thanks, applied as 6066e020c5324aebe9aec5bf43c9b84e3453819f. Michael
[sent from post-receive hook] On Fri, 05 May 2023 16:56:54 +0200, Roland Hieber <r...@pengutronix.de> wrote: > By default, spinx_rtd_theme sets the CSS attribute "white-space: nowrap" > on table cells, which has the effect, that table contents never > word-wrap and the table gets scrollable. This is unfortunate if table > cells contain a large amount of text. > > Issue #1246 of sphinx_rtd_theme addresses this situation, but the > general fix is not that easy. Until this issue is fixed upstream, > introduce a custom CSS class named "word-wrap" that reverts the > behaviour of table cells back to do word wrapping when the content of > the cell is wider than the available width. > > With this change, the following example should produce a table as wide > as the content area with word-wrapped text in the second row: > > .. table:: > :class: word-wrap > > +--------------------------------+-----------------------------+ > | Column 1 | Column 2 | > +================================+=============================+ > | Lorem ipsum dolor sit amet, | Duis aute irure dolor in | > | adipisicing elit, sed do eius | voluptate velit esse cillum | > | incididunt ut labore et dolor | fugiat nulla pariatur. | > | aliqua. Ut enim ad minim veni | Excepteur sint occaecat | > | nostrud exercitation ullamco | proident, sunt in culpa | > | nisi ut aliquip ex ea commodi. | deserunt mollit anim id. | > +--------------------------------+-----------------------------+ > | Third Row | Third Row continued | > +--------------------------------+-----------------------------+ > > Link: https://github.com/readthedocs/sphinx_rtd_theme/issues/1246 > Signed-off-by: Roland Hieber <r...@pengutronix.de> > Message-Id: <20230502075505.316900-1-...@pengutronix.de> > Signed-off-by: Michael Olbrich <m.olbr...@pengutronix.de> > > diff --git a/doc/_static/css/custom.css b/doc/_static/css/custom.css > index 0efa6f92cac5..258e8f70ebfb 100644 > --- a/doc/_static/css/custom.css > +++ b/doc/_static/css/custom.css > @@ -109,3 +109,8 @@ nav.wy-nav-side #menu-resize .fa:not(:first-child) { > .note .admonition-title { > background-color: #83983e !important; > } > + > +.wy-table-responsive table.word-wrap td, > +.wy-table-responsive table.word-wrap th { > + white-space: normal; > +}