mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[PR #4308] [CLOSED] fix(graphs): increase y-axis padding to prevent clipped labels #5646
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#5646
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/4308
Author: @abdalrahmanx9
Created: 5/12/2026
Status: ❌ Closed
Base:
main← Head:fix/sparkline-yaxis-padding📝 Commits (1)
5a156f4fix(graphs): increase y-axis paddingLeft from 32 to 56 to prevent clipped labels📊 Changes
1 file changed (+1 additions, -1 deletions)
View changed files
📝
frontend/src/components/Sparkline.vue(+1 -1)📄 Description
In Sparkline.vue, y-axis labels (e.g. "0.00 MB/s", "500.00 KB/s")
were clipped on the left edge because paddingLeft was only 32px.
At font-size 10, labels longer than ~4 characters extend past x=0
and get cut off by the SVG viewBox.
Increased the default paddingLeft from 32 to 56, giving ample room
for labels up to ~10 characters (e.g. "10.00 MB/s").
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.