-
-
Notifications
You must be signed in to change notification settings - Fork 560
fix(HappyHare): Retains the correct font size for filament status messages #1788
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(HappyHare): Retains the correct font size for filament status messages #1788
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
Moves the MMU “filament status message” from MmuCard’s HTML layout into the MmuFilamentStatus SVG so the text scales proportionally with the rest of the status display across different aspect ratios.
Changes:
- Adjusts the filament status SVG viewBox and adds an SVG
<text>node for the status message. - Relocates the
statusTextcomputed logic (andcapitalizehelper) fromMmuCardintoMmuFilamentStatus. - Removes the old status text container from
MmuCard’s template.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.
| File | Description |
|---|---|
| src/components/widgets/mmu/MmuFilamentStatus.vue | Adds SVG-rendered status text and moves statusText computation into the filament status component. |
| src/components/widgets/mmu/MmuCard.vue | Removes the HTML-rendered status text so the SVG becomes the single source of truth for that message. |
| <text | ||
| x="282" | ||
| y="18" | ||
| font-size="16px" | ||
| text-anchor="middle" | ||
| > | ||
| {{ statusText }} | ||
| </text> |
Copilot
AI
Feb 12, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The new status is outside the existing that sets font-family/font-size styling (e.g. font-family: Roboto). As a result it will render with the browser default font and likely look inconsistent vs the rest of the SVG text. Consider applying the same font styling (wrap in the same styled or set font-family/font-size consistently).
| <text | |
| x="282" | |
| y="18" | |
| font-size="16px" | |
| text-anchor="middle" | |
| > | |
| {{ statusText }} | |
| </text> | |
| <g style="font-family: Roboto, sans-serif;"> | |
| <text | |
| x="282" | |
| y="18" | |
| font-size="16px" | |
| text-anchor="middle" | |
| > | |
| {{ statusText }} | |
| </text> | |
| </g> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure we want this...
Signed-off-by: Pedro Lamas <pedrolamas@gmail.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Signed-off-by: Pedro Lamas <pedrolamas@gmail.com>
Signed-off-by: Pedro Lamas <pedrolamas@gmail.com>
Signed-off-by: Pedro Lamas <pedrolamas@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
Signed-off-by: Pedro Lamas <pedrolamas@gmail.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Signed-off-by: Pedro Lamas <pedrolamas@gmail.com>
Description
This PR moves the display of the "filament status message" which gives details of current movement from a vue text field and puts it in the filament status SVG. This ensures the font remains proportional to the rest of the status information. Previously on very narrow or wide displays, text would wrap or be of the incorrect size.
Related Tickets & Documents
n/a
Mobile & Desktop Screenshots/Recordings
Example mismatch prior:

Fixed as part of filament status component:

Signed-off-by: Paul Morgan moggieuk@hotmail.com