mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 19:11:53 +07:00
[PR #5930] [MERGED] fix(frontend): stabilize speed tags on inbound and client pages #6031
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#6031
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?
📋 Pull Request Information
Original PR: https://github.com/MHSanaei/3x-ui/pull/5930
Author: @H-TTTTT
Created: 7/13/2026
Status: ✅ Merged
Merged: 7/14/2026
Merged by: @MHSanaei
Base:
main← Head:fix/5912-stable-speed-tags📝 Commits (4)
009b6d2fix(frontend): add shared stable speed-tag style0041910fix(frontend): stabilize InboundSpeedTag and ClientSpeedTag layout8dcb429fix(frontend): align speed columns with stable tag widthf07b622fix(frontend): scope stable speed tags to table cells and fit content📊 Changes
6 files changed (+131 additions, -10 deletions)
View changed files
📝
frontend/src/components/clients/ClientSpeedTag.tsx(+8 -2)➕
frontend/src/components/utility/speedTagStyle.ts(+21 -0)📝
frontend/src/pages/clients/ClientsPage.tsx(+6 -3)📝
frontend/src/pages/inbounds/list/InboundSpeedTag.tsx(+8 -2)📝
frontend/src/pages/inbounds/list/useInboundColumns.tsx(+4 -3)➕
frontend/src/test/speed-tag-stable.test.tsx(+84 -0)📄 Description
Summary
Fixes live Speed-column layout jitter when upload/download rates change length (B/KB/MB digit boundaries).
speed-tagstyle: fixed 148px width, centered content,nowrap,tabular-numsInboundSpeedTagandClientSpeedTagFixes #5912
Verification
RED → GREEN (TDD)
RED (before applying style to tags):
GREEN (after fix):
Commands
npm test -- --project components src/test/speed-tag-stable.test.tsxnpm run typechecknpm run lintnpm run buildVisual / width evidence
Full panel UI needs an authenticated backend + live traffic, so widths were measured with a Chrome headless harness using the same shared style as the tags:
stable=true,style.width=148px, column width constant160.Non-goals
Changed files
frontend/src/components/utility/speedTagStyle.ts(new)frontend/src/styles/utils.cssfrontend/src/components/clients/ClientSpeedTag.tsxfrontend/src/pages/inbounds/list/InboundSpeedTag.tsxfrontend/src/pages/inbounds/list/useInboundColumns.tsxfrontend/src/pages/clients/ClientsPage.tsxfrontend/src/test/speed-tag-stable.test.tsx(new)🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.