Skip to content

Commit

Permalink
fix width of submenu items on Vertical orientation (#2306)
Browse files Browse the repository at this point in the history
* fix width of submenu items on vertical view
* Gui: slightly better canvas width handling in submenu
* Gui: remove unused include

Co-authored-by: あく <[email protected]>
  • Loading branch information
gebeto and skotopes authored Jun 30, 2023
1 parent 8c93695 commit 88f8f68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion applications/services/gui/modules/submenu.c
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ static void submenu_view_draw_callback(Canvas* canvas, void* _model) {
SubmenuModel* model = _model;

const uint8_t item_height = 16;
const uint8_t item_width = 123;
uint8_t item_width = canvas_width(canvas) - 5;

canvas_clear(canvas);

Expand Down

0 comments on commit 88f8f68

Please sign in to comment.