fix dashboard case sensitive model id

This commit is contained in:
Alex Cheema
2025-11-26 18:16:32 +00:00
parent e56daa7c23
commit 20d73e90cd

View File

@@ -2344,7 +2344,7 @@
nodeG.appendChild(titleEl);
// --- Device Specific Icon Drawing ---
if (modelId === "Mac Studio") {
if (modelId.toLowerCase() === "mac studio") {
iconBaseWidth = nodeRadius * 1.25; // Slightly wider based on typical Studio proportions
iconBaseHeight = nodeRadius * 0.85; // And a bit flatter than a perfect cube
const x = nodeInfo.x - iconBaseWidth / 2;
@@ -2456,7 +2456,7 @@
led.setAttribute('fill', 'var(--exo-light-gray)'); // Subtle LED color
specificIconGroup.appendChild(led);
} else if (modelId === "Mac Mini") {
} else if (modelId.toLowerCase() === "mac mini") {
iconBaseWidth = nodeRadius * 1.3; // Mini is wide
iconBaseHeight = nodeRadius * 0.7; // and quite flat
const x = nodeInfo.x - iconBaseWidth / 2;
@@ -2553,7 +2553,7 @@
led.setAttribute('fill', 'var(--exo-light-gray)');
specificIconGroup.appendChild(led);
} else if (modelId === "MacBook Pro") {
} else if (modelId.toLowerCase() === "macbook pro") {
iconBaseWidth = nodeRadius * 1.6; // Max width of the base
iconBaseHeight = nodeRadius * 1.15; // Overall height of the open laptop visual
const x = nodeInfo.x - iconBaseWidth / 2;