Update chartpanel

This commit is contained in:
grove5_admin committed 2026-05-01 11:27:04 -07:00
1 parent 6aae169859
commit c87c429f28
1 file changed
+13 -10
+13 -10
View File
@@ -73,7 +73,10 @@
const frHist = fruiting?.history ?? [];
const win = activeWin;
const now = Date.now();
if (win !== snapWin || now - snapMs >= winMs[win]) {
const hadData = colSnap.length > 0 || fruitSnap.length > 0;
const hasData = colHist.length > 0 || frHist.length > 0;
// Always update if: window changed, throttle expired, or transitioning from empty to data
if (win !== snapWin || now - snapMs >= winMs[win] || (!hadData && hasData)) {
colSnap = colHist.slice();
fruitSnap = frHist.slice();
snapMs = now;
@@ -665,12 +668,12 @@
/* Single chamber desktop: side-by-side sparklines and radar */
@media (min-width: 901px) {
:global(.rows.single) {
.rows.single {
position: relative;
padding-right: 210px; /* make room for radar column */
}
:global(.rows.single .row-radar) {
.rows.single :global(.row-radar) {
position: absolute;
top: 12px;
right: 0;
@@ -683,12 +686,12 @@
margin: 0;
}
:global(.row-radar.single .row-label) {
.row-radar.single .row-label {
justify-content: center;
padding: 8px 0;
}
:global(.row-radar.single .cell-radar) {
.row-radar.single .cell-radar {
flex: 1;
display: flex;
align-items: center;
@@ -698,7 +701,7 @@
}
/* Calibrating placeholder fits the tighter space */
:global(.row-radar.single .calibrating) {
.row-radar.single .calibrating {
min-height: 0;
max-width: none;
padding: 8px;
@@ -724,18 +727,18 @@
}
/* Single chamber radar: full width stack on mobile */
:global(.row-radar.single) {
.row-radar.single {
grid-template-columns: 1fr;
}
:global(.row-radar.single .cell-radar) {
.row-radar.single .cell-radar {
max-width: none;
}
/* Reset single chamber side-by-side on mobile */
:global(.rows.single) {
.rows.single {
padding-right: 0 !important;
}
:global(.rows.single .row-radar) {
.rows.single :global(.row-radar) {
position: static !important;
width: auto !important;
height: auto !important;