JonathanAlexis commited on
Commit
152e8ee
Β·
1 Parent(s): 91a926a

fix(ui): improve mobile stock chart controls

Browse files
frontend/src/App.css CHANGED
@@ -520,6 +520,80 @@
520
  .right-sidebar {
521
  grid-column: span 1;
522
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
523
  }
524
 
525
  /* ─── Glass Panel Base ──────────────────── */
 
520
  .right-sidebar {
521
  grid-column: span 1;
522
  }
523
+
524
+ .chart-indicator-controls {
525
+ flex-direction: column;
526
+ align-items: stretch !important;
527
+ gap: 12px !important;
528
+ padding: 12px !important;
529
+ }
530
+
531
+ .chart-type-controls,
532
+ .technical-overlay-controls {
533
+ width: 100%;
534
+ max-width: 100%;
535
+ flex-wrap: wrap;
536
+ align-items: center;
537
+ }
538
+
539
+ .chart-type-controls {
540
+ justify-content: flex-start;
541
+ }
542
+
543
+ .technical-overlay-controls {
544
+ justify-content: flex-start;
545
+ }
546
+
547
+ .technical-overlay-controls .control-toggle-btn {
548
+ flex: 1 1 calc(50% - 4px);
549
+ min-width: 0;
550
+ min-height: 38px;
551
+ justify-content: center;
552
+ }
553
+
554
+ .chart-range-actions {
555
+ width: 100%;
556
+ max-width: 100%;
557
+ display: flex;
558
+ align-items: center;
559
+ gap: 8px !important;
560
+ }
561
+
562
+ .chart-range-selector {
563
+ flex: 1 1 auto;
564
+ min-width: 0;
565
+ width: auto !important;
566
+ padding: 2px;
567
+ gap: 0;
568
+ overflow: hidden;
569
+ }
570
+
571
+ .range-btn {
572
+ flex: 1 1 0;
573
+ min-width: 0;
574
+ padding: 3px 1px;
575
+ font-size: 7px;
576
+ height: 30px;
577
+ }
578
+
579
+ .chart-range-actions > .control-toggle-btn {
580
+ flex: 0 0 34px;
581
+ width: 34px;
582
+ min-width: 34px;
583
+ height: 34px;
584
+ padding: 0 !important;
585
+ border-radius: 7px !important;
586
+ display: flex;
587
+ align-items: center;
588
+ justify-content: center;
589
+ }
590
+ }
591
+
592
+ @media (max-width: 768px) {
593
+ .chart-range-actions .range-btn {
594
+ font-size: 10px !important;
595
+ padding: 4px 2px !important;
596
+ }
597
  }
598
 
599
  /* ─── Glass Panel Base ──────────────────── */
frontend/src/components/StockChart.tsx CHANGED
The diff for this file is too large to render. See raw diff