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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/ui/box.js +5 -8
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hedgequantx",
3
- "version": "2.5.2",
3
+ "version": "2.5.3",
4
4
  "description": "HedgeQuantX - Prop Futures Trading CLI",
5
5
  "main": "src/app.js",
6
6
  "bin": {
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 || 80;
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: use logo width
24
- if (!logoWidth) {
25
- const logoText = figlet.textSync('HEDGEQUANTX', { font: 'ANSI Shadow' });
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
  /**