Skip to content

Commit

Permalink
chore: only drop the unit if space it not wide enough
Browse files Browse the repository at this point in the history
  • Loading branch information
pfeerick committed Jan 22, 2025
1 parent 2f126df commit d72a49c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion radio/src/gui/colorlcd/widgets/value.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ class ValueWidget: public Widget
yValue = -2;
xLabel = NUMBERS_PADDING;
yLabel = +2;
attrValue = RIGHT | FONT(L);
attrValue = RIGHT | FONT(L) | (width() < 120 ? NO_UNIT : 0);
}
else {
switch (label_alignment) {
Expand Down

0 comments on commit d72a49c

Please sign in to comment.