fix(DisplayDriverTFT): right-align WiFi indicator in header

This commit is contained in:
2026-02-20 00:49:57 -08:00
parent 9c8f67dccb
commit fd04dea8dd
2 changed files with 14 additions and 2 deletions

View File

@@ -222,8 +222,10 @@ void DisplayDriverTFT::drawDashboard(const ScreenState& st) {
_tft.print("KLUBHAUS");
// WiFi indicator - right aligned in header
_tft.setCursor(dispW - 50, 20);
_tft.print(st.wifiSsid.length() > 0 ? "WiFi:ON" : "WiFi:OFF");
const char* wifiText = st.wifiSsid.length() > 0 ? "WiFi:ON" : "WiFi:OFF";
int wifiW = _tft.textWidth(wifiText);
_tft.setCursor(dispW - wifiW - 10, 20);
_tft.print(wifiText);
// Get tile layouts from library helper
int tileCount = display.calculateDashboardLayouts(STYLE_HEADER_HEIGHT, STYLE_TILE_GAP);