hedgequantx 2.5.2 → 2.5.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/ui/box.js +5 -8
package/package.json
CHANGED
package/src/ui/box.js
CHANGED
|
@@ -11,22 +11,19 @@ let logoWidth = null;
|
|
|
11
11
|
/**
|
|
12
12
|
* Get logo width for consistent box sizing
|
|
13
13
|
* Adapts to terminal width for mobile devices
|
|
14
|
+
* Returns 98 for desktop to match the full HEDGEQUANTX logo width
|
|
14
15
|
*/
|
|
15
16
|
const getLogoWidth = () => {
|
|
16
|
-
const termWidth = process.stdout.columns ||
|
|
17
|
+
const termWidth = process.stdout.columns || 100;
|
|
17
18
|
|
|
18
19
|
// Mobile: use terminal width
|
|
19
20
|
if (termWidth < 60) {
|
|
20
21
|
return Math.max(termWidth - 2, 40);
|
|
21
22
|
}
|
|
22
23
|
|
|
23
|
-
// Desktop:
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
const lines = logoText.split('\n').filter(line => line.trim().length > 0);
|
|
27
|
-
logoWidth = Math.max(...lines.map(line => line.length)) + 4;
|
|
28
|
-
}
|
|
29
|
-
return Math.min(logoWidth, termWidth - 2);
|
|
24
|
+
// Desktop: fixed width of 98 to match banner
|
|
25
|
+
// Logo line = 86 chars (HEDGEQUANT) + 8 chars (X) + 2 borders = 96, round to 98
|
|
26
|
+
return Math.min(98, termWidth - 2);
|
|
30
27
|
};
|
|
31
28
|
|
|
32
29
|
/**
|