[PR #4309] [MERGED] fix(graphs): increase y-axis padding to prevent clipped labels #5647

Closed
opened 2026-10-31 20:48:22 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/MHSanaei/3x-ui/pull/4309
Author: @abdalrahmanx9
Created: 5/12/2026
Status: ✅ Merged
Merged: 5/12/2026
Merged by: @MHSanaei

Base: main ← Head: fix/sparkline-yaxis-padding


📝 Commits (1)

  • 5a156f4 fix(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").

Fixes #4305


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/MHSanaei/3x-ui/pull/4309 **Author:** [@abdalrahmanx9](https://github.com/abdalrahmanx9) **Created:** 5/12/2026 **Status:** ✅ Merged **Merged:** 5/12/2026 **Merged by:** [@MHSanaei](https://github.com/MHSanaei) **Base:** `main` ← **Head:** `fix/sparkline-yaxis-padding` --- ### 📝 Commits (1) - [`5a156f4`](https://github.com/MHSanaei/3x-ui/commit/5a156f48c2bf4c7fa3fd32077614f6322d6c0ef0) fix(graphs): increase y-axis paddingLeft from 32 to 56 to prevent clipped labels ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `frontend/src/components/Sparkline.vue` (+1 -1) </details> ### 📄 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"). Fixes #4305 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-31 20:48:22 +07:00
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#5647
No description provided.