Skip to content

Fix clipped search button text in docs sidebar - #276

Merged
leotsarev merged 1 commit into
masterfrom
issue4679
Aug 29, 2026
Merged

Fix clipped search button text in docs sidebar#276
leotsarev merged 1 commit into
masterfrom
issue4679

Conversation

@leotsarev

Copy link
Copy Markdown
Member

Summary

  • Sphinx's basic theme hard-codes the search submit button at a fixed 20% width, sized for the English default "Go" label — the Russian localized label "Искать" is longer and gets clipped.
  • Adds docs/_static/custom.css overriding the search form layout with flexbox so the button always sizes to its content, and enables html_static_path in conf.py so the override is actually picked up.

Fixes joinrpg/joinrpg-net#4679

Test plan

  • make html builds cleanly (no new warnings)
  • Verified locally with a headless browser screenshot: before shows "Иска" clipped, after shows full "Искать"
  • Confirm on docs.dev.joinrpg.ru once dev-deploy CI runs for this branch

🤖 Generated with Claude Code

https://claude.ai/code/session_01PAqYCLJ2teeT2kBWKVGAWa

Sphinx's basic theme hard-codes the search submit button at a fixed
20% width, sized for the English default "Go" label. The localized
Russian label "Искать" is longer and gets clipped. Override with
flexbox so the button always sizes to its content.

Fixes joinrpg/joinrpg-net#4679

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PAqYCLJ2teeT2kBWKVGAWa
@leotsarev
leotsarev merged commit 1d6f96f into master Aug 29, 2026
3 checks passed
@leotsarev
leotsarev deleted the issue4679 branch August 29, 2026 16:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Обрезается текст кнопки Искать на странице с руководством пользователя (minor)

1 participant