[GH-ISSUE #6737] [Bug]: Geodata Auto-Update buttons overflow the window in Russian interface #4489

Closed
opened 2026-10-31 20:40:01 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @djoker0726-ui on GitHub (Oct 5, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/6737

Describe the bug

In the Overview section, when clicking the Xray version in the top-left corner and expanding Geodata Auto-Update, the Add file and Use Standard sources buttons extend beyond the boundaries of the window when the panel interface language is set to Russian.
The same interface is displayed correctly when the panel language is set to English.
The issue is reproducible in Firefox at 100% zoom, including in a private window.

How to reproduce the problem

  1. Set the 3x-ui interface language to Russian.
  2. Open the Overview section.
  3. Click the Xray version in the top-left corner.
  4. Expand Geodata Auto-Update.
  5. Observe the Add file and Use Standard sources buttons.
  6. The buttons extend beyond the boundaries of the window.
  7. Change the interface language to English.
  8. Repeat the same steps.
  9. The buttons are displayed correctly and remain within the window boundaries.

Expected behavior

The Add file and Use Standard sources buttons should remain within the boundaries of the Geodata Auto-Update window regardless of the selected interface language.

Actual behavior

When the interface language is set to Russian, the Add file and Use Standard sources buttons extend beyond the boundaries of the Geodata Auto-Update window. When the interface language is set to English, the buttons are displayed correctly.

Relevant logs

No relevant logs or browser console errors were observed.

Screenshots

Image

3x-ui version

3.9.0

Xray-core version

26.6.27

How did you install 3x-ui?

Docker / Docker Compose

Operating system

Ubuntu 22.04.5 LTS

Which parts of the panel are affected?

Frontend (UI / panel pages)

Browser (only if it is a UI bug)

Firefox 157.0

Is the panel behind a reverse proxy or CDN?

None

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 @djoker0726-ui on GitHub (Oct 5, 2026). Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/6737 ### Describe the bug In the Overview section, when clicking the Xray version in the top-left corner and expanding Geodata Auto-Update, the Add file and Use Standard sources buttons extend beyond the boundaries of the window when the panel interface language is set to Russian. The same interface is displayed correctly when the panel language is set to English. The issue is reproducible in Firefox at 100% zoom, including in a private window. ### How to reproduce the problem 1. Set the 3x-ui interface language to Russian. 2. Open the Overview section. 3. Click the Xray version in the top-left corner. 4. Expand Geodata Auto-Update. 5. Observe the Add file and Use Standard sources buttons. 6. The buttons extend beyond the boundaries of the window. 7. Change the interface language to English. 8. Repeat the same steps. 9. The buttons are displayed correctly and remain within the window boundaries. ### Expected behavior The Add file and Use Standard sources buttons should remain within the boundaries of the Geodata Auto-Update window regardless of the selected interface language. ### Actual behavior When the interface language is set to Russian, the Add file and Use Standard sources buttons extend beyond the boundaries of the Geodata Auto-Update window. When the interface language is set to English, the buttons are displayed correctly. ### Relevant logs ```shell No relevant logs or browser console errors were observed. ``` ### Screenshots <img width="700" height="718" alt="Image" src="https://github.com/user-attachments/assets/765bf4b5-f522-4e4f-9dbc-d6c636c152f9" /> ### 3x-ui version 3.9.0 ### Xray-core version 26.6.27 ### How did you install 3x-ui? Docker / Docker Compose ### Operating system Ubuntu 22.04.5 LTS ### Which parts of the panel are affected? Frontend (UI / panel pages) ### Browser (only if it is a UI bug) Firefox 157.0 ### Is the panel behind a reverse proxy or CDN? None ### 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:40:01 +07:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@github-actions[bot] commented on GitHub (Oct 5, 2026):

Confirmed: the three buttons under Geodata Auto-Update sit in a flex row that cannot wrap. With the longer Russian labels the row is wider than the modal, so the buttons spill out of it. It is a layout defect that only shows with longer translations. Nothing is broken functionally: all three buttons still work if you scroll or widen the window.

The buttons are rendered in frontend/src/pages/index/GeodataSection.tsx:226-239:

<div className="actions-row">
  <Button icon={<PlusOutlined />} ...>{t('pages.index.geodataAddFile')}</Button>
  <Button onClick={addStandardSources} ...>{t('pages.index.geodataUseStandardSources')}</Button>
  <Button type="primary" onClick={save} ...>{t('pages.index.geodataSaveRestart')}</Button>
</div>

The styling for .actions-row comes from frontend/src/pages/index/VersionModal.css:26-30:

.actions-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
}

It has no flex-wrap and no gap. The host <Modal> in VersionModal.tsx:104 sets no width, so it uses Ant Design's default width. The Russian strings are much longer than the English ones (internal/web/translation/ru-RU.json:236-238 vs en-US.json:236-238):

  • "Use standard sources" → "Использовать штатные источники"
  • "Save & Restart Xray" → "Сохранить и перезапустить Xray"

The English row fits inside the modal, but the Russian one does not. The middle button was added in d600de2c "feat(geodata): add standard source presets (#6504)", first released in v3.8.0. Before that the row held only two buttons.

Workaround: switch the panel language to English while you edit Geodata Auto-Update, or make the browser window or zoom level smaller so the buttons can be reached.

Verdict: Confirmed bug
Severity: Low
Confidence: High
Root cause: .actions-row (frontend/src/pages/index/VersionModal.css:26-30) is a non-wrapping flex row, and GeodataSection.tsx:226-239 puts three buttons in it. Long labels (ru-RU, and likely other long locales) are wider than the default-width modal at VersionModal.tsx:104. The third button came in with d600de2c (#6504).
Already fixed: No. Still present on the default branch.
Duplicate of: None
Evidence: GeodataSection.tsx:226-239 (three buttons inside actions-row); VersionModal.css:26-30 (display: flex; justify-content: flex-end;, no flex-wrap); VersionModal.tsx:104 (<Modal ... footer={null}> with no width); ru-RU.json:236-238 vs en-US.json:236-238 (label lengths).
Not determined: I could not view the screenshot or render the panel, so I can't say which other locales also overflow. Opening the same section in each language would show which ones do.

Suggested fix: Add flex-wrap: wrap and a gap to this button row (or use Ant Design <Space wrap>), so long labels drop onto a second line and stay inside the modal.

This reply was generated automatically; a maintainer may follow up.

<!-- gh-comment-id:5992697451 --> @github-actions[bot] commented on GitHub (Oct 5, 2026): Confirmed: the three buttons under **Geodata Auto-Update** sit in a flex row that cannot wrap. With the longer Russian labels the row is wider than the modal, so the buttons spill out of it. It is a layout defect that only shows with longer translations. Nothing is broken functionally: all three buttons still work if you scroll or widen the window. The buttons are rendered in `frontend/src/pages/index/GeodataSection.tsx:226-239`: ```tsx <div className="actions-row"> <Button icon={<PlusOutlined />} ...>{t('pages.index.geodataAddFile')}</Button> <Button onClick={addStandardSources} ...>{t('pages.index.geodataUseStandardSources')}</Button> <Button type="primary" onClick={save} ...>{t('pages.index.geodataSaveRestart')}</Button> </div> ``` The styling for `.actions-row` comes from `frontend/src/pages/index/VersionModal.css:26-30`: ```css .actions-row { display: flex; justify-content: flex-end; margin-top: 12px; } ``` It has no `flex-wrap` and no `gap`. The host `<Modal>` in `VersionModal.tsx:104` sets no `width`, so it uses Ant Design's default width. The Russian strings are much longer than the English ones (`internal/web/translation/ru-RU.json:236-238` vs `en-US.json:236-238`): - `"Use standard sources"` → `"Использовать штатные источники"` - `"Save & Restart Xray"` → `"Сохранить и перезапустить Xray"` The English row fits inside the modal, but the Russian one does not. The middle button was added in d600de2c "feat(geodata): add standard source presets (#6504)", first released in v3.8.0. Before that the row held only two buttons. **Workaround:** switch the panel language to English while you edit Geodata Auto-Update, or make the browser window or zoom level smaller so the buttons can be reached. Verdict: Confirmed bug Severity: Low Confidence: High Root cause: `.actions-row` (`frontend/src/pages/index/VersionModal.css:26-30`) is a non-wrapping flex row, and `GeodataSection.tsx:226-239` puts three buttons in it. Long labels (ru-RU, and likely other long locales) are wider than the default-width modal at `VersionModal.tsx:104`. The third button came in with d600de2c (#6504). Already fixed: No. Still present on the default branch. Duplicate of: None Evidence: `GeodataSection.tsx:226-239` (three buttons inside `actions-row`); `VersionModal.css:26-30` (`display: flex; justify-content: flex-end;`, no `flex-wrap`); `VersionModal.tsx:104` (`<Modal ... footer={null}>` with no `width`); `ru-RU.json:236-238` vs `en-US.json:236-238` (label lengths). Not determined: I could not view the screenshot or render the panel, so I can't say which other locales also overflow. Opening the same section in each language would show which ones do. Suggested fix: Add `flex-wrap: wrap` and a `gap` to this button row (or use Ant Design `<Space wrap>`), so long labels drop onto a second line and stay inside the modal. *This reply was generated automatically; a maintainer may follow up.* <!-- claude-issue:analyst -->
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#4489
No description provided.