mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 19:11:53 +07:00
[GH-ISSUE #5238] [Feature]: blinking green dot alignment #3671
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#3671
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 @PA4EJIJIA on GitHub (Jun 12, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/5238
Is your feature request related to a problem?
Sorry to bother with this, it seems like blinking green dot in Clients online page of panel UI is slightly misaligned? I don't remember how it was, but noticed that currently the dot is not height-centered within the "Online" rectangle or aligned with "Online" text. If this is not how it supposed to be, then I'd like to suggest aligning the dot in some way.
Describe the solution you'd like
On the Clients page, when client is online, the blinking green dot can be aligned with "Online" text or height-centered within the rectangle where it sits. Though I don't know if it's supposed to be aligned, this is just a suggestion.
Alternatives you've considered
Alternatively leave it be.
Concrete use case
This is a cosmetic suggestion, quite subjective.
Mockups, screenshots, or examples
Which parts of the panel would this affect?
Frontend (UI / panel pages)
Are you willing to help?
Before submitting
@github-actions[bot] commented on GitHub (Jun 12, 2026):
The misalignment is confirmed in the source. The blinking dot is rendered as:
The
.online-dotclass infrontend/src/styles/utils.css(line 31) usesvertical-align: middle, which in CSS aligns the element's midpoint to the parent's baseline plus half the x-height — not to the visual centre of the containing element. Inside Ant Design'sTag, which has its ownline-heightand padding, this produces the slight vertical offset visible in the screenshot.The fix would be a minor CSS or markup change. Two straightforward approaches:
Adjust
vertical-align— try a small negative offset (e.g.vertical-align: -1pxorvertical-align: text-bottom) in.online-dotwithinfrontend/src/styles/utils.css.Use flexbox on the Tag content — wrap the dot and the label text in a flex container so both are centred on the same axis:
Either approach is isolated to the Clients page online-status column and has no effect on business logic. The same
.online-dotclass is reused on the Nodes page (frontend/src/pages/nodes/NodeList.tsx), so a change to the class definition would apply there as well — worth verifying that context looks correct after any edit.If you'd like to submit a PR for this, the relevant files are:
frontend/src/styles/utils.css(the.online-dotclass)frontend/src/pages/clients/ClientsPage.tsx(line 652, the Tag render)This reply was generated automatically; a maintainer may follow up.