From ae4b7357d4c793e00fa8a72e371de4a8191e4923 Mon Sep 17 00:00:00 2001 From: liu weikai Date: Fri, 24 Jul 2026 17:28:04 +0800 Subject: [PATCH] fix: make map shortcuts responsive --- platform/linux/uconsole/src/uconsole_desktop_shell.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/platform/linux/uconsole/src/uconsole_desktop_shell.cpp b/platform/linux/uconsole/src/uconsole_desktop_shell.cpp index 10474567..e6d691cb 100644 --- a/platform/linux/uconsole/src/uconsole_desktop_shell.cpp +++ b/platform/linux/uconsole/src/uconsole_desktop_shell.cpp @@ -747,7 +747,7 @@ class UConsoleDesktopShell return false; } - rebuildDesktopPage(); + refreshMapPreview(true); refreshFooter(); return true; } @@ -926,7 +926,7 @@ class UConsoleDesktopShell lv_obj_set_width(footer_shortcuts_row_, 0); lv_obj_set_height(footer_shortcuts_row_, LV_PCT(100)); lv_obj_set_flex_grow(footer_shortcuts_row_, 1); - lv_obj_set_style_pad_column(footer_shortcuts_row_, 5, 0); + lv_obj_set_style_pad_column(footer_shortcuts_row_, 2, 0); lv_obj_set_flex_flow(footer_shortcuts_row_, LV_FLEX_FLOW_ROW); lv_obj_set_flex_align(footer_shortcuts_row_, LV_FLEX_ALIGN_END, @@ -966,7 +966,7 @@ class UConsoleDesktopShell resetBox(group); applyTransparent(group); lv_obj_set_height(group, 22); - lv_obj_set_style_pad_column(group, 2, 0); + lv_obj_set_style_pad_column(group, 1, 0); lv_obj_set_flex_flow(group, LV_FLEX_FLOW_ROW); lv_obj_set_flex_align(group, LV_FLEX_ALIGN_START,