font: remove 4px padding on the right

Added `menu.items.padding.x` padding between item text and arrow instead.

Replaced `if (!string)` with `if (string_null_or_empty(string))` in
`font_extents()` just as a minor optimization.
This commit is contained in:
tokyo4j 2025-09-21 20:40:49 +09:00 committed by Johan Malm
parent 141f932efa
commit ebce406b11
3 changed files with 6 additions and 11 deletions

View file

@ -193,9 +193,6 @@ resize_indicator_update(struct view *view)
/* Let the indicator change width as required by the content */
int width = font_width(&rc.font_osd, text);
/* font_extents() adds 4 pixels to the calculated width */
width -= 4;
resize_indicator_set_size(indicator, width);
/* Center the indicator in the window */