mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[GH-ISSUE #5912] [Bug]: UI Issue: Speed column text resizing causes layout flickering #4097
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#4097
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 @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!
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
@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) andClientSpeedTag(frontend/src/components/clients/ClientSpeedTag.tsx:16-23) both render the up/down rate string inside a plain AntDTagwith nomin-widthor fixed-width wrapper.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 example0 B/svs856.20 KB/svs12.34 MB/s.frontend/src/pages/inbounds/list/useInboundColumns.tsx:323-336, and the equivalent client column atfrontend/src/pages/clients/ClientsPage.tsx:907-917) sets the AntD columnwidth: 110, but that only sizes the column hint; theTableinfrontend/src/pages/inbounds/list/InboundList.tsx:280-300never setstableLayout="fixed", so the browser can still resize the column/table to fit content.TRAFFIC_POLL_INTERVAL_S = 5infrontend/src/lib/traffic/poll-interval.ts, consumed by the WS-drivenapplyTrafficEventinfrontend/src/pages/inbounds/useInbounds.ts:409-456), so the cell keeps getting rewritten during active use, which is the jitter reported..client-count-taginfrontend/src/pages/inbounds/list/InboundList.css:14-16setsfont-variant-numeric: tabular-numsto 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-widthplusfont-variant-numeric: tabular-nums, matching the existing.client-count-tagapproach) so digit and unit changes do not shift the tag width. Apply it to bothInboundSpeedTag.tsxandClientSpeedTag.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:
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.
@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!