Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Fix word wrapping in RST list-table#1506

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
jsquyres wants to merge2 commits intoreadthedocs:master
base:master
Choose a base branch
Loading
fromjsquyres:pr/make-list-table-cells-wrap

Conversation

@jsquyres
Copy link

  • Remove ".wy-table-responsive table td" CSS stanza

The diff on this PR is gigantic because the CSS is minified. The diff is effectively this:

$ diff -u theme.css-orig theme.css-new--- theme.css-orig2023-08-19 15:08:11+++ theme.css-new2023-08-19 15:08:22@@ -1 +1 @@-.wy-table-responsive table td,.wy-table-responsive table th{white-space:nowrap}+.wy-table-responsive table th{white-space:nowrap}

This seems tofix#1505 for me, but I don't know if there's a historical or other deeper reason that that stanza is there in the CSS.

Erol444 reacted with thumbs up emoji
@jsquyresjsquyresforce-pushed thepr/make-list-table-cells-wrap branch froma1891cb to17e061bCompareAugust 20, 2023 15:56
@jsquyres
Copy link
Author

jsquyres commentedAug 20, 2023
edited
Loading

I am not an expert in front-end dev things, but it looks liketheme.css might actually be generated, and the source of thewy-table-responsive CSS stanzas comes fromhttps://github.com/snide/wyrm/blob/master/sass/wyrm_core/_table.sass#L144-L151

Since this is not the ecosystem I typically work in, I'm not sure about the right way to proceed here. Is there a way to get word wrapping enabled insphinx_rtd_theme tables?

@aik099
Copy link

@jsquyres , you're correct. Thehttps://sphinx-rtd-theme.readthedocs.io/en/stable/contributing.html page explains how to make changes to a theme for PRs.

I've also found#432 (from 2017), which might be related to the issue you're solving here.

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

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Table cell text does not wrap in ".. list-table::"

2 participants

@jsquyres@aik099

[8]ページ先頭

©2009-2025 Movatter.jp