[GH-ISSUE #4986] [Bug]: The Russian text is moving beyond the hash input field. #3507

Closed
opened 2026-10-31 20:32:55 +07:00 by bsakaguchi · 3 comments
Owner

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

  1. Switch to Russian.
  2. Start creating an incoming connection.
  3. Go to the "TLS" tab.
  4. You'll see text overflowing at the bottom.

Expected behavior

No response

Actual behavior

At a minimum, the text should not go beyond the input field.

Relevant logs


Screenshots

Image

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

  • I searched existing issues and this bug has not been reported.
  • I am running the latest released version of 3x-ui (or have verified the bug still exists on it).
  • This bug report is written in English.
  • I have redacted any sensitive data (tokens, real domains, client UUIDs).
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 1) Switch to Russian. 2) Start creating an incoming connection. 3) Go to the "TLS" tab. 4) You'll see text overflowing at the bottom. ### Expected behavior _No response_ ### Actual behavior At a minimum, the text should not go beyond the input field. ### Relevant logs ```shell ``` ### Screenshots <img width="651" height="1121" alt="Image" src="https://github.com/user-attachments/assets/d60347d3-135e-4e10-b0d5-ce91c284c0f7" /> ### 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 - [x] I searched [existing issues](../issues?q=is%3Aissue) and this bug has not been reported. - [x] I am running the latest released version of 3x-ui (or have verified the bug still exists on it). - [x] This bug report is written in English. - [x] I have redacted any sensitive data (tokens, real domains, client UUIDs).
bsakaguchi 2026-10-31 20:32:55 +07:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@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) via labelCol={{ sm: { span: 8 } }}. No labelWrap is applied, so labels that are wider than ~33% of the form simply overflow horizontally.

Several Russian strings in web/translation/ru-RU.json are significantly longer than their English counterparts, for example:

Translation key English Russian
pages.inbounds.form.pinnedPeerCertSha256 "Pinned Peer Cert SHA-256" "Закреплённый SHA-256 сертификата пира"
pages.inbounds.form.rejectUnknownSni "Reject Unknown SNI" "Отклонить неизвестный SNI"
pages.inbounds.form.sessionResumption "Session Resumption" "Возобновление сессии"

The 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.Compact widget (a Select + icon Button), so the horizontal squeeze is worst there.

Fix

There are two complementary approaches:

  1. Add labelWrap to the <Form> in InboundFormModal.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:

    -  labelCol={{ sm: { span: 8 } }}
    -  wrapperCol={{ sm: { span: 14 } }}
    +  labelCol={{ sm: { span: 8 } }}
    +  wrapperCol={{ sm: { span: 14 } }}
    +  labelWrap
    
  2. 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.

<!-- gh-comment-id:4635105224 --> @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) via `labelCol={{ sm: { span: 8 } }}`. No `labelWrap` is applied, so labels that are wider than ~33% of the form simply overflow horizontally. Several Russian strings in `web/translation/ru-RU.json` are significantly longer than their English counterparts, for example: | Translation key | English | Russian | |---|---|---| | `pages.inbounds.form.pinnedPeerCertSha256` | "Pinned Peer Cert SHA-256" | "Закреплённый SHA-256 сертификата пира" | | `pages.inbounds.form.rejectUnknownSni` | "Reject Unknown SNI" | "Отклонить неизвестный SNI" | | `pages.inbounds.form.sessionResumption` | "Session Resumption" | "Возобновление сессии" | The 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.Compact` widget (a `Select` + icon `Button`), so the horizontal squeeze is worst there. **Fix** There are two complementary approaches: 1. **Add `labelWrap` to the `<Form>` in `InboundFormModal.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: ```diff - labelCol={{ sm: { span: 8 } }} - wrapperCol={{ sm: { span: 14 } }} + labelCol={{ sm: { span: 8 } }} + wrapperCol={{ sm: { span: 14 } }} + labelWrap ``` 2. **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.
Author
Owner

@vitaliques commented on GitHub (Jun 5, 2026):

ну это же мелочь...

<!-- gh-comment-id:4635231227 --> @vitaliques commented on GitHub (Jun 5, 2026): ну это же мелочь...
Author
Owner

@MHSanaei commented on GitHub (Jun 5, 2026):

Fixed in commit 75bc6e80.

Two changes:

  1. Added AntD's labelWrap to 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.
  2. Shortened the Russian pinnedPeerCertSha256 label ("Закреплённый SHA-256 сертификата пира" → "SHA-256 сертификата пира") so it fits comfortably.

Thanks for the report and screenshot. The fix will land in the next release.

<!-- gh-comment-id:4636482879 --> @MHSanaei commented on GitHub (Jun 5, 2026): Fixed in commit 75bc6e80. Two changes: 1. Added AntD's `labelWrap` to 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. 2. Shortened the Russian `pinnedPeerCertSha256` label ("Закреплённый SHA-256 сертификата пира" → "SHA-256 сертификата пира") so it fits comfortably. Thanks for the report and screenshot. The fix will land in the next release.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
MHSanaei/3x-ui#3507
No description provided.