diff --git a/tasmota/xdrv_86_esp32_sonoff_spm.ino b/tasmota/xdrv_86_esp32_sonoff_spm.ino
index 1aa76c03a..226b983c4 100644
--- a/tasmota/xdrv_86_esp32_sonoff_spm.ino
+++ b/tasmota/xdrv_86_esp32_sonoff_spm.ino
@@ -2124,20 +2124,19 @@ void SSPMEnergyShow(bool json) {
uint32_t offset = (Sspm->rotate >> 2) * 4;
uint32_t count = index - offset;
if (count > 4) { count = 4; }
+ WSContentSend_P(PSTR("
"));
if (2 == Sspm->Settings.flag.display) {
uint32_t modules = index / 4;
if (modules > 1) {
- WSContentSend_P(PSTR("
{t}"));
+ WSContentSend_P(PSTR("{t}
"));
uint32_t cols_width = 100 / modules;
uint32_t current_module = Sspm->rotate >> 2;
for (uint32_t idx = 0; idx < modules; idx++) {
- WSContentSend_P(PSTR(" | "), // &k86 is related to WebGetArg("k", tmp, sizeof(tmp));
- cols_width, (current_module == idx) ? WebColor(COL_BACKGROUND) : WebColor(COL_TIMER_TAB_BACKGROUND), idx, idx +1);
+ WSContentSend_P(PSTR(" | "), // &k86 is related to WebGetArg("k", tmp, sizeof(tmp));
+ cols_width, (current_module == idx) ? WebColor(COL_BACKGROUND) : WebColor(COL_FORM), idx, (idx *4) +1);
}
WSContentSend_P(PSTR("
"));
}
- } else {
- WSContentSend_P(PSTR("
"));
}
// {s} | Head1 | | {e}
// {s} | | Head1 | | Head2 | | {e}
|