mirror of
https://github.com/exo-explore/exo.git
synced 2025-12-23 22:27:50 -05:00
fix dashboard case sensitive model id
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user