Skip to content

UI: fix loadpoint value alignment on narrow screens (#31993) - #32050

Draft
jenskueper wants to merge 1 commit into
evcc-io:masterfrom
jenskueper:fix/31993-loadpoint-alignment
Draft

UI: fix loadpoint value alignment on narrow screens (#31993)#32050
jenskueper wants to merge 1 commit into
evcc-io:masterfrom
jenskueper:fix/31993-loadpoint-alignment

Conversation

@jenskueper

Copy link
Copy Markdown
Contributor

Fixes #31993. On viewports below the sm breakpoint, .text-truncate-xs-only applies overflow: hidden to the label inside the session-info select on the loadpoint card.

Because a scroll container has no text baseline, the baseline of the surrounding inline-block select falls back to its bottom edge, which grows the label's line box and pushes the session value a few pixels below the other loadpoint values (power, charged energy). This happens at the same breakpoint where the loadpoint header wraps onto two lines, which is why the two effects appear linked. Top-aligning the select inside the label keeps the line box at its normal height, so all values stay on one line; rendering at larger viewports is unchanged.

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey - I've left some high level feedback:

  • The .labelSelect class name is a bit generic; consider a more descriptive name tied to the session info context to reduce ambiguity and future misuse.
  • The vertical-align: top !important; rule may be hard to override later; if possible, prefer adjusting the CustomSelect or utility classes to avoid relying on !important.
Prompt for AI Agents
Please address the comments from this code review:

## Overall Comments
- The `.labelSelect` class name is a bit generic; consider a more descriptive name tied to the session info context to reduce ambiguity and future misuse.
- The `vertical-align: top !important;` rule may be hard to override later; if possible, prefer adjusting the CustomSelect or utility classes to avoid relying on `!important`.

Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

@github-actions github-actions Bot added bug Something isn't working ux User experience/ interface labels Jul 22, 2026
user-select: none;
-webkit-user-select: none;
}
/* Truncation (overflow: hidden via .text-truncate-xs-only) moves the baseline of the

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See agents.md

@andig
andig marked this pull request as draft July 22, 2026 15:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working ux User experience/ interface

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Loadpoint: Values not in a line

3 participants