Brajmovech commited on
Commit
45f9901
Β·
1 Parent(s): f21508a

fix: sync dashboard spacing optimization from localhost

Browse files
Files changed (2) hide show
  1. static/style.css +23 -21
  2. templates/index.html +1 -1
static/style.css CHANGED
@@ -430,8 +430,8 @@ header {
430
  display: flex;
431
  justify-content: space-between;
432
  align-items: flex-end;
433
- margin-bottom: 2rem;
434
- padding-bottom: 1rem;
435
  border-bottom: 1px solid var(--panel-border);
436
  }
437
 
@@ -448,17 +448,17 @@ header {
448
  .cards-grid {
449
  display: grid;
450
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
451
- gap: 2rem;
452
- margin-bottom: 4rem;
453
  }
454
 
455
  .dashboard-3col {
456
  display: grid;
457
  grid-template-columns: 1fr 1fr 1fr;
458
- grid-template-rows: auto auto;
459
- gap: 1.25rem;
460
  align-items: stretch;
461
- margin-bottom: 2rem;
462
  }
463
 
464
  /* ── Explicit grid placement for each dashboard card ── */
@@ -542,7 +542,7 @@ header {
542
  flex: 1;
543
  overflow-y: auto;
544
  padding-right: 0.25rem;
545
- max-height: 460px;
546
  }
547
 
548
  /* Predicted price: RED for uptrend, GREEN for downtrend (contrarian risk signal) */
@@ -673,7 +673,7 @@ header {
673
  }
674
 
675
  .card {
676
- padding: 2rem;
677
  display: flex;
678
  flex-direction: column;
679
  transition: transform 0.3s ease, box-shadow 0.3s ease;
@@ -685,10 +685,10 @@ header {
685
  }
686
 
687
  .card h3 {
688
- font-size: 1.1rem;
689
  color: var(--text-muted);
690
  font-weight: 600;
691
- margin-bottom: 1.5rem;
692
  text-transform: uppercase;
693
  letter-spacing: 1px;
694
  }
@@ -879,14 +879,14 @@ header {
879
  }
880
 
881
  .headline-item {
882
- padding: 10px 12px;
883
  background: var(--headline-bg);
884
  border-left: 2px solid var(--accent-blue);
885
  border-radius: 0 6px 6px 0;
886
- margin-bottom: 7px;
887
  display: flex;
888
  flex-direction: column;
889
- gap: 5px;
890
  transition: background 0.15s ease;
891
  }
892
 
@@ -923,19 +923,21 @@ header {
923
  }
924
 
925
  .headlines-scroll-hint {
926
- font-size: 10px;
927
  color: var(--text-muted);
928
  text-align: center;
929
- padding-top: 6px;
930
- border-top: 1px solid rgba(209,212,220,0.08);
931
- margin-top: 4px;
932
  opacity: 0;
933
  transition: opacity 0.2s;
934
  pointer-events: none;
 
 
 
935
  }
936
 
937
  .headlines-scroll-hint.visible {
938
- opacity: 1;
939
  }
940
 
941
  .headline-item--empty {
@@ -946,9 +948,9 @@ header {
946
  }
947
 
948
  .headline-title {
949
- font-size: 0.925rem;
950
  font-weight: 500;
951
- line-height: 1.45;
952
  color: var(--text-main);
953
  text-decoration: none;
954
  display: block;
 
430
  display: flex;
431
  justify-content: space-between;
432
  align-items: flex-end;
433
+ margin-bottom: 1.25rem;
434
+ padding-bottom: 0.75rem;
435
  border-bottom: 1px solid var(--panel-border);
436
  }
437
 
 
448
  .cards-grid {
449
  display: grid;
450
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
451
+ gap: 1.25rem;
452
+ margin-bottom: 2.5rem;
453
  }
454
 
455
  .dashboard-3col {
456
  display: grid;
457
  grid-template-columns: 1fr 1fr 1fr;
458
+ grid-template-rows: 1fr 1fr;
459
+ gap: 1rem;
460
  align-items: stretch;
461
+ margin-bottom: 1.5rem;
462
  }
463
 
464
  /* ── Explicit grid placement for each dashboard card ── */
 
542
  flex: 1;
543
  overflow-y: auto;
544
  padding-right: 0.25rem;
545
+ min-height: 0;
546
  }
547
 
548
  /* Predicted price: RED for uptrend, GREEN for downtrend (contrarian risk signal) */
 
673
  }
674
 
675
  .card {
676
+ padding: 1.5rem;
677
  display: flex;
678
  flex-direction: column;
679
  transition: transform 0.3s ease, box-shadow 0.3s ease;
 
685
  }
686
 
687
  .card h3 {
688
+ font-size: 1rem;
689
  color: var(--text-muted);
690
  font-weight: 600;
691
+ margin-bottom: 1rem;
692
  text-transform: uppercase;
693
  letter-spacing: 1px;
694
  }
 
879
  }
880
 
881
  .headline-item {
882
+ padding: 8px 10px;
883
  background: var(--headline-bg);
884
  border-left: 2px solid var(--accent-blue);
885
  border-radius: 0 6px 6px 0;
886
+ margin-bottom: 5px;
887
  display: flex;
888
  flex-direction: column;
889
+ gap: 3px;
890
  transition: background 0.15s ease;
891
  }
892
 
 
923
  }
924
 
925
  .headlines-scroll-hint {
926
+ font-size: 9px;
927
  color: var(--text-muted);
928
  text-align: center;
929
+ padding: 3px 0 0;
930
+ margin: 2px 0 0;
 
931
  opacity: 0;
932
  transition: opacity 0.2s;
933
  pointer-events: none;
934
+ flex-shrink: 0;
935
+ line-height: 1;
936
+ border-top: none;
937
  }
938
 
939
  .headlines-scroll-hint.visible {
940
+ opacity: 0.6;
941
  }
942
 
943
  .headline-item--empty {
 
948
  }
949
 
950
  .headline-title {
951
+ font-size: 0.88rem;
952
  font-weight: 500;
953
+ line-height: 1.38;
954
  color: var(--text-main);
955
  text-decoration: none;
956
  display: block;
templates/index.html CHANGED
@@ -22,7 +22,7 @@
22
  })();
23
  </script>
24
  <link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;800&display=swap" rel="stylesheet">
25
- <link rel="stylesheet" href="/static/style.css?v=10">
26
  <link rel="icon" type="image/svg+xml"
27
  href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22><text y=%22.9em%22 font-size=%2290%22 fill=%22%233b82f6%22>IA</text></svg>">
28
  </head>
 
22
  })();
23
  </script>
24
  <link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;800&display=swap" rel="stylesheet">
25
+ <link rel="stylesheet" href="/static/style.css?v=11">
26
  <link rel="icon" type="image/svg+xml"
27
  href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22><text y=%22.9em%22 font-size=%2290%22 fill=%22%233b82f6%22>IA</text></svg>">
28
  </head>