Remove the redundant "Currently" row from the overview
The big clock already shows the asleep/awake state prominently.
This commit is contained in:
@@ -659,15 +659,6 @@
|
||||
document.getElementById("last-sleep").textContent = lastSleep
|
||||
? `${EVENT_LABELS[lastSleep.type]} at ${formatTime(lastSleep.at)} (${formatRelative(lastSleep.at)})`
|
||||
: "—";
|
||||
|
||||
const row = document.getElementById("currently-row");
|
||||
const currently = document.getElementById("currently");
|
||||
if (currentSleepState(events).state === "asleep") {
|
||||
row.hidden = false;
|
||||
currently.textContent = "😴 Asleep";
|
||||
} else {
|
||||
row.hidden = true;
|
||||
}
|
||||
}
|
||||
|
||||
// Tracks the latest sleep transition so the 1-second tick can update the
|
||||
|
||||
@@ -143,7 +143,6 @@
|
||||
<div class="last-row"><span>Last poo</span><span id="last-poo">—</span></div>
|
||||
<div class="last-row"><span>Last meal</span><span id="last-eat">—</span></div>
|
||||
<div class="last-row"><span>Last sleep</span><span id="last-sleep">—</span></div>
|
||||
<div class="last-row" id="currently-row" hidden><span>Currently</span><span id="currently">—</span></div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user