-
Notifications
You must be signed in to change notification settings - Fork 203
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
Tables expand to width of display adding lots of white space between columns #807
Comments
Hi, I just came across the same problem, this should be able to be solved by adding the wrapper class that e.g furo uses. |
I use furo instead of sphinx-book-theme for my six projects on readthedocs because of this problem; e.g., Are there any plans to fix this ? |
@Theowyn Can you please make a pull request for the fix? |
hi, I have not fixed the issue myself. I have only created a workaround by adding the css class via javascript which needs to be assigned. Edit: I have updated to 1.1.3 and it seems it is no longer an issue. my tables are properly wrapped in class |
Describe the bug
When I create a table, sphinx-book-theme always expands it to take of the full width of the display, unlike other sphinx themes; e.g., sphinx-rtd-theme and furo. This can result in lots of white space between columns (when the browser window is wide).
In the example below, in the file
test_sphinx.git/source/conf.py
, if you replacesphinx_book_theme
bysphinx_rtd_theme
, the table width will contract and not include a huge amount of white space before and after the second column.Reproduce the bug
List your environment
test_sphinx.git>uname -a
Linux fedora 6.6.6-200.fc39.x86_64 #1 SMP PREEMPT_DYNAMIC Mon Dec 11 17:29:08 UTC 2023 x86_64 GNU/Linux
test_sphinx.git>python --version
Python 3.12.0
test_sphinx.git>dnf info sphinx | grep '^Version'
Version : 2.2.11
test_sphinx.git>pip list | grep sphinx-book-theme
sphinx-book-theme 1.0.1
The text was updated successfully, but these errors were encountered: