Skip to content
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

Reduce body_min_width in basic theme #10197

Merged
merged 4 commits into from May 7, 2022
Merged

Conversation

palewire
Copy link
Contributor

@palewire palewire commented Feb 15, 2022

The current 450px setting is too large for many small device width. It causes x-overflows that make the page appear broken and introduces difficulty reading on many phones.

@@ -7,7 +7,7 @@ sidebars = localtoc.html, relations.html, sourcelink.html, searchbox.html
[options]
nosidebar = false
sidebarwidth = 230
body_min_width = 450
body_min_width = 300
Copy link
Member

Choose a reason for hiding this comment

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

Is any reason to choose this value?

I just searched the screensizes of well-used mobile devices. Some reports says 360px is smallest size at present.
https://www.browserstack.com/guide/ideal-screen-sizes-for-responsive-design
https://mediag.com/blog/popular-screen-resolutions-designing-for-all/

Copy link
Contributor Author

@palewire palewire Apr 30, 2022

Choose a reason for hiding this comment

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

I picked it because it solved the bug. Another value could work fine if it also resolve the issue.

@tk0miya tk0miya added this to the 4.5.0 milestone Feb 19, 2022
@tk0miya tk0miya modified the milestones: 4.5.0, 5.0.0 Mar 27, 2022
@mgeier
Copy link
Contributor

mgeier commented May 1, 2022

For reference, this has been added in #4376 by @timhoffm.

@tk0miya tk0miya changed the base branch from 4.x to 5.x May 7, 2022 17:37
@tk0miya
Copy link
Member

tk0miya commented May 7, 2022

I determined to use 360px for the new default value of body_min_width (see reports above).

@tk0miya tk0miya merged commit 27a62bb into sphinx-doc:5.x May 7, 2022
@tk0miya
Copy link
Member

tk0miya commented May 7, 2022

Merged. Thank you for your contribution!

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 7, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants