[GH-ISSUE #5238] [Feature]: blinking green dot alignment #3671

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

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

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

Image

Which parts of the panel would this affect?

Frontend (UI / panel pages)

Are you willing to help?

  • I'd like to implement this feature myself and open a PR.
  • I can help test once a PR is open.

Before submitting

  • I searched existing issues and this feature has not been requested.
  • This feature request is written in English.
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 <img width="99" height="53" alt="Image" src="https://github.com/user-attachments/assets/335b90e7-47fe-4bc7-8d0d-066ae5113fec" /> ### Which parts of the panel would this affect? Frontend (UI / panel pages) ### Are you willing to help? - [ ] I'd like to implement this feature myself and open a PR. - [ ] I can help test once a PR is open. ### Before submitting - [x] I searched [existing issues](../issues?q=is%3Aissue) and this feature has not been requested. - [x] This feature request is written in English.
Author
Owner

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

The misalignment is confirmed in the source. The blinking dot is rendered as:

<Tag color="green"><span className="online-dot" />{t('pages.clients.online')}</Tag>

The .online-dot class in frontend/src/styles/utils.css (line 31) uses vertical-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's Tag, which has its own line-height and padding, this produces the slight vertical offset visible in the screenshot.

The fix would be a minor CSS or markup change. Two straightforward approaches:

  1. Adjust vertical-align — try a small negative offset (e.g. vertical-align: -1px or vertical-align: text-bottom) in .online-dot within frontend/src/styles/utils.css.

  2. 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:

    <Tag color="green" style={{ display: 'inline-flex', alignItems: 'center' }}>
      <span className="online-dot" />
      {t('pages.clients.online')}
    </Tag>
    

Either approach is isolated to the Clients page online-status column and has no effect on business logic. The same .online-dot class 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-dot class)
  • frontend/src/pages/clients/ClientsPage.tsx (line 652, the Tag render)

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

<!-- gh-comment-id:4695668678 --> @github-actions[bot] commented on GitHub (Jun 12, 2026): The misalignment is confirmed in the source. The blinking dot is rendered as: ```tsx <Tag color="green"><span className="online-dot" />{t('pages.clients.online')}</Tag> ``` The `.online-dot` class in `frontend/src/styles/utils.css` (line 31) uses `vertical-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's `Tag`, which has its own `line-height` and padding, this produces the slight vertical offset visible in the screenshot. The fix would be a minor CSS or markup change. Two straightforward approaches: 1. **Adjust `vertical-align`** — try a small negative offset (e.g. `vertical-align: -1px` or `vertical-align: text-bottom`) in `.online-dot` within `frontend/src/styles/utils.css`. 2. **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: ```tsx <Tag color="green" style={{ display: 'inline-flex', alignItems: 'center' }}> <span className="online-dot" /> {t('pages.clients.online')} </Tag> ``` Either approach is isolated to the Clients page online-status column and has no effect on business logic. The same `.online-dot` class 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-dot` class) - `frontend/src/pages/clients/ClientsPage.tsx` (line 652, the Tag render) *This reply was generated automatically; a maintainer may follow up.*
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#3671
No description provided.