dashboard: anchor relay strip to bottom

This commit is contained in:
2026-06-10 02:38:58 -06:00
parent 07aa84bf0e
commit 5da5a054a4
2 changed files with 5 additions and 5 deletions
@@ -1,6 +1,6 @@
#pragma once
static const char *DASHBOARD_VERSION = "0.1.27-max-relay-buttons";
static const char *DASHBOARD_VERSION = "0.1.28-relay-bottom-anchor";
// Update these if your Cargo ESP AP credentials are different.
static const char *CARGO_WIFI_SSID = "OverlandController";
@@ -277,8 +277,8 @@ static void layout_relay_buttons()
}
if (i < relay_count) {
lv_obj_set_size(relay_buttons[i], button_width, 172);
lv_obj_align(relay_buttons[i], LV_ALIGN_TOP_LEFT, start_x + (i * (button_width + RELAY_BUTTON_GAP)), 16);
lv_obj_set_size(relay_buttons[i], button_width, 150);
lv_obj_align(relay_buttons[i], LV_ALIGN_TOP_LEFT, start_x + (i * (button_width + RELAY_BUTTON_GAP)), 18);
}
}
}
@@ -820,8 +820,8 @@ static void create_overland_overview_screen()
for (int i = 0; i < 6; i++) {
relay_buttons[i] = lv_btn_create(relay_card);
lv_obj_set_size(relay_buttons[i], 140, 172);
lv_obj_align(relay_buttons[i], LV_ALIGN_TOP_LEFT, 14 + (i * 150), 16);
lv_obj_set_size(relay_buttons[i], 140, 150);
lv_obj_align(relay_buttons[i], LV_ALIGN_TOP_LEFT, 14 + (i * 150), 18);
lv_obj_add_event_cb(
relay_buttons[i],
relay_button_event_cb,