[GH-ISSUE #5912] [Bug]: UI Issue: Speed column text resizing causes layout flickering #4097

Closed
opened 2026-10-31 20:37:09 +07:00 by bsakaguchi · 2 comments
Owner

Originally created by @madar54 on GitHub (Jul 12, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/5912

Describe the bug

Description:
Hi, I hope you are doing well. I am using this panel and I've noticed a minor UI issue regarding the "Speed" column.

When a client is online and transferring data, the text in the "Speed" column (showing upload/download rates) keeps changing its length based on the transfer speed. This causes the column width or the surrounding elements to shift slightly, which results in a flickering or jittering effect in the user interface. It makes the dashboard look unstable and is a bit distracting for the user.

I have attached a screenshot to demonstrate this behavior. It would be great if you could fix this by setting a fixed width for the Speed column or preventing the layout from shifting when the text changes.

Thank you for your great work and for maintaining this panel!

Image

How to reproduce the problem

Login to the panel.

Go to the 'Inbounds' tab.

Wait for clients to start using traffic.

Observe the 'Speed' column changing width and causing layout shifts.

Expected behavior

No response

Actual behavior

No response

Relevant logs


Screenshots

No response

3x-ui version

3.4.5

Xray-core version

26.7.11

How did you install 3x-ui?

install.sh script

Operating system

Ubuntu 24

Which parts of the panel are affected?

Subscription (share links / Clash / JSON), Other, Frontend (UI / panel pages)

Browser (only if it is a UI bug)

No response

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 @madar54 on GitHub (Jul 12, 2026). Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/5912 ### Describe the bug Description: Hi, I hope you are doing well. I am using this panel and I've noticed a minor UI issue regarding the "Speed" column. When a client is online and transferring data, the text in the "Speed" column (showing upload/download rates) keeps changing its length based on the transfer speed. This causes the column width or the surrounding elements to shift slightly, which results in a flickering or jittering effect in the user interface. It makes the dashboard look unstable and is a bit distracting for the user. I have attached a screenshot to demonstrate this behavior. It would be great if you could fix this by setting a fixed width for the Speed column or preventing the layout from shifting when the text changes. Thank you for your great work and for maintaining this panel! <img width="1092" height="457" alt="Image" src="https://github.com/user-attachments/assets/46e3aeb3-4a3d-45dc-ac7b-fecbd6edc6ec" /> ### How to reproduce the problem Login to the panel. Go to the 'Inbounds' tab. Wait for clients to start using traffic. Observe the 'Speed' column changing width and causing layout shifts. ### Expected behavior _No response_ ### Actual behavior _No response_ ### Relevant logs ```shell ``` ### Screenshots _No response_ ### 3x-ui version 3.4.5 ### Xray-core version 26.7.11 ### How did you install 3x-ui? install.sh script ### Operating system Ubuntu 24 ### Which parts of the panel are affected? Subscription (share links / Clash / JSON), Other, Frontend (UI / panel pages) ### Browser (only if it is a UI bug) _No response_ ### 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:37:09 +07:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@github-actions[bot] commented on GitHub (Jul 12, 2026):

Confirmed as a real layout bug, not a config issue. The Speed cell renders variable-length text with no fixed or minimum width, inside a table that does not force a fixed column layout, so every live update of the rate can change the cell rendered width.

Title: Speed tag has no fixed/min width, so live rate updates reflow the table

Severity: Low

Category: Correctness

Why this matters:

  • InboundSpeedTag (frontend/src/pages/inbounds/list/InboundSpeedTag.tsx:18-24) and ClientSpeedTag (frontend/src/components/clients/ClientSpeedTag.tsx:16-23) both render the up/down rate string inside a plain AntD Tag with no min-width or fixed-width wrapper.
  • The numbers come from SizeFormatter.speedFormat -> sizeFormat (frontend/src/utils/index.ts:657-670), which walks a B/KB/MB/GB/TB/PB ladder and applies .toFixed(2) above 1 KB. Rendered length varies a lot as the rate crosses a unit or digit boundary, for example 0 B/s vs 856.20 KB/s vs 12.34 MB/s.
  • The Speed column (frontend/src/pages/inbounds/list/useInboundColumns.tsx:323-336, and the equivalent client column at frontend/src/pages/clients/ClientsPage.tsx:907-917) sets the AntD column width: 110, but that only sizes the column hint; the Table in frontend/src/pages/inbounds/list/InboundList.tsx:280-300 never sets tableLayout="fixed", so the browser can still resize the column/table to fit content.
  • Live speed refreshes roughly every 5 seconds while a client is transferring (TRAFFIC_POLL_INTERVAL_S = 5 in frontend/src/lib/traffic/poll-interval.ts, consumed by the WS-driven applyTrafficEvent in frontend/src/pages/inbounds/useInbounds.ts:409-456), so the cell keeps getting rewritten during active use, which is the jitter reported.
  • The codebase already has precedent for the fix: .client-count-tag in frontend/src/pages/inbounds/list/InboundList.css:14-16 sets font-variant-numeric: tabular-nums to stop the same class of numeric-width jitter in the adjacent Clients column, but no equivalent rule exists for the speed tag.

Recommendation: Give the speed tag a stable rendered width (min-width plus font-variant-numeric: tabular-nums, matching the existing .client-count-tag approach) so digit and unit changes do not shift the tag width. Apply it to both InboundSpeedTag.tsx and ClientSpeedTag.tsx, since both share the identical markup and column width (width: 110) and would otherwise still show the issue in one place after fixing the other.

Example:

frontend/src/pages/inbounds/list/InboundSpeedTag.tsx, InboundSpeedTag, lines 18-24
frontend/src/components/clients/ClientSpeedTag.tsx, ClientSpeedTag, lines 16-23

Confidence: high on the root cause; all paths and lines above are from the current main branch, which matches the just-published v3.5.0 release, so this is still present in the latest version and not something already fixed since 3.4.5. The exact width and CSS tuning needed to look right visually is left to implementation.

@MHSanaei for a decision on fixing this.

This reply was generated automatically. A maintainer may follow up.

<!-- gh-comment-id:4952827131 --> @github-actions[bot] commented on GitHub (Jul 12, 2026): Confirmed as a real layout bug, not a config issue. The Speed cell renders variable-length text with no fixed or minimum width, inside a table that does not force a fixed column layout, so every live update of the rate can change the cell rendered width. **Title:** Speed tag has no fixed/min width, so live rate updates reflow the table **Severity:** Low **Category:** Correctness **Why this matters:** - `InboundSpeedTag` (`frontend/src/pages/inbounds/list/InboundSpeedTag.tsx:18-24`) and `ClientSpeedTag` (`frontend/src/components/clients/ClientSpeedTag.tsx:16-23`) both render the up/down rate string inside a plain AntD `Tag` with no `min-width` or fixed-width wrapper. - The numbers come from `SizeFormatter.speedFormat` -> `sizeFormat` (`frontend/src/utils/index.ts:657-670`), which walks a B/KB/MB/GB/TB/PB ladder and applies `.toFixed(2)` above 1 KB. Rendered length varies a lot as the rate crosses a unit or digit boundary, for example `0 B/s` vs `856.20 KB/s` vs `12.34 MB/s`. - The Speed column (`frontend/src/pages/inbounds/list/useInboundColumns.tsx:323-336`, and the equivalent client column at `frontend/src/pages/clients/ClientsPage.tsx:907-917`) sets the AntD column `width: 110`, but that only sizes the column hint; the `Table` in `frontend/src/pages/inbounds/list/InboundList.tsx:280-300` never sets `tableLayout="fixed"`, so the browser can still resize the column/table to fit content. - Live speed refreshes roughly every 5 seconds while a client is transferring (`TRAFFIC_POLL_INTERVAL_S = 5` in `frontend/src/lib/traffic/poll-interval.ts`, consumed by the WS-driven `applyTrafficEvent` in `frontend/src/pages/inbounds/useInbounds.ts:409-456`), so the cell keeps getting rewritten during active use, which is the jitter reported. - The codebase already has precedent for the fix: `.client-count-tag` in `frontend/src/pages/inbounds/list/InboundList.css:14-16` sets `font-variant-numeric: tabular-nums` to stop the same class of numeric-width jitter in the adjacent Clients column, but no equivalent rule exists for the speed tag. **Recommendation:** Give the speed tag a stable rendered width (`min-width` plus `font-variant-numeric: tabular-nums`, matching the existing `.client-count-tag` approach) so digit and unit changes do not shift the tag width. Apply it to both `InboundSpeedTag.tsx` and `ClientSpeedTag.tsx`, since both share the identical markup and column width (`width: 110`) and would otherwise still show the issue in one place after fixing the other. **Example:** ``` frontend/src/pages/inbounds/list/InboundSpeedTag.tsx, InboundSpeedTag, lines 18-24 frontend/src/components/clients/ClientSpeedTag.tsx, ClientSpeedTag, lines 16-23 ``` Confidence: high on the root cause; all paths and lines above are from the current main branch, which matches the just-published v3.5.0 release, so this is still present in the latest version and not something already fixed since 3.4.5. The exact width and CSS tuning needed to look right visually is left to implementation. @MHSanaei for a decision on fixing this. *This reply was generated automatically. A maintainer may follow up.*
Author
Owner

@madar54 commented on GitHub (Jul 13, 2026):

I am also experiencing this UI flickering issue. It makes the dashboard look unstable when clients are active. I hope this can be prioritized in the next update. Thanks for your hard work!

<!-- gh-comment-id:4955743998 --> @madar54 commented on GitHub (Jul 13, 2026): I am also experiencing this UI flickering issue. It makes the dashboard look unstable when clients are active. I hope this can be prioritized in the next update. Thanks for your hard work!
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#4097
No description provided.