mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[GH-ISSUE #4986] [Bug]: The Russian text is moving beyond the hash input field. #3507
Labels
No labels
backlog
bug
clarification needed
documentation
duplicate
enhancement
github_actions
good first issue
invalid
javascript
New Feature
PR welcomed
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
MHSanaei/3x-ui#3507
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @MURKA05-gigant on GitHub (Jun 5, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/4986
Describe the bug
The error is literally in the title
How to reproduce the problem
Expected behavior
No response
Actual behavior
At a minimum, the text should not go beyond the input field.
Relevant logs
Screenshots
3x-ui version
3.2.8
Xray-core version
26.6.1
How did you install 3x-ui?
install.sh script
Operating system
Ubuntu 24.04
Which parts of the panel are affected?
Frontend (UI / panel pages)
Browser (only if it is a UI bug)
Crome lastest version
Is the panel behind a reverse proxy or CDN?
No — direct access
Before submitting
@github-actions[bot] commented on GitHub (Jun 5, 2026):
Thanks for the clear report — this is a confirmed bug.
Root cause
The inbound form (
frontend/src/pages/inbounds/form/InboundFormModal.tsx) sets a fixed 8-column label area (out of 24) vialabelCol={{ sm: { span: 8 } }}. NolabelWrapis applied, so labels that are wider than ~33% of the form simply overflow horizontally.Several Russian strings in
web/translation/ru-RU.jsonare significantly longer than their English counterparts, for example:pages.inbounds.form.pinnedPeerCertSha256pages.inbounds.form.rejectUnknownSnipages.inbounds.form.sessionResumptionThe overflow on the TLS tab is most prominent for the "Pinned Peer Cert SHA-256" field because it carries the longest label and sits next to a
Space.Compactwidget (aSelect+ iconButton), so the horizontal squeeze is worst there.Fix
There are two complementary approaches:
Add
labelWrapto the<Form>inInboundFormModal.tsx— this is an Ant Design prop (supported since v5, already on v6.4.3 here) that lets labels wrap onto multiple lines instead of overflowing:Shorten the Russian translation strings in
web/translation/ru-RU.json— e.g. "Закреплённый хеш сертификата" instead of the full phrase. This benefits small-screen users regardless of the layout fix.A PR doing either (or both) would resolve the overflow across all affected TLS fields.
@vitaliques commented on GitHub (Jun 5, 2026):
ну это же мелочь...
@MHSanaei commented on GitHub (Jun 5, 2026):
Fixed in commit
75bc6e80.Two changes:
labelWrapto the inbound and outbound form modals, so any over-long label on the TLS tab wraps to a second line instead of overflowing the field — fixes this for every locale, not just Russian.pinnedPeerCertSha256label ("Закреплённый SHA-256 сертификата пира" → "SHA-256 сертификата пира") so it fits comfortably.Thanks for the report and screenshot. The fix will land in the next release.