Pointf5ive commited on
Commit
40eefc0
·
1 Parent(s): 6083069

Improve TOTEM risk cluster readability

Browse files
Files changed (1) hide show
  1. app.py +8 -4
app.py CHANGED
@@ -923,8 +923,8 @@ TOTEM_CSS = """
923
 
924
  .totem-risk-row {
925
  display: grid;
926
- grid-template-columns: 54px minmax(0, 1fr) auto 150px;
927
- gap: 12px;
928
  align-items: center;
929
  padding: 14px 18px;
930
  border-bottom: 1px solid rgba(174, 183, 204, 0.15);
@@ -965,12 +965,13 @@ TOTEM_CSS = """
965
 
966
  .totem-risk-body {
967
  min-width: 0;
 
968
  }
969
 
970
  .totem-risk-body b {
971
  display: block;
972
  font-family: var(--font-display);
973
- font-size: 36px;
974
  line-height: 1.05;
975
  color: rgba(246, 241, 232, 0.98);
976
  }
@@ -983,7 +984,8 @@ TOTEM_CSS = """
983
  line-height: 1.3;
984
  color: rgba(174, 183, 204, 0.98);
985
  white-space: normal;
986
- word-break: break-word;
 
987
  }
988
 
989
  .totem-sparkline {
@@ -993,6 +995,8 @@ TOTEM_CSS = """
993
  align-items: end;
994
  justify-content: space-between;
995
  gap: 5px;
 
 
996
  }
997
 
998
  .totem-sparkline span {
 
923
 
924
  .totem-risk-row {
925
  display: grid;
926
+ grid-template-columns: 54px minmax(0, 1fr) auto;
927
+ gap: 10px 12px;
928
  align-items: center;
929
  padding: 14px 18px;
930
  border-bottom: 1px solid rgba(174, 183, 204, 0.15);
 
965
 
966
  .totem-risk-body {
967
  min-width: 0;
968
+ overflow-wrap: normal;
969
  }
970
 
971
  .totem-risk-body b {
972
  display: block;
973
  font-family: var(--font-display);
974
+ font-size: clamp(24px, 2.2vw, 36px);
975
  line-height: 1.05;
976
  color: rgba(246, 241, 232, 0.98);
977
  }
 
984
  line-height: 1.3;
985
  color: rgba(174, 183, 204, 0.98);
986
  white-space: normal;
987
+ word-break: normal;
988
+ overflow-wrap: anywhere;
989
  }
990
 
991
  .totem-sparkline {
 
995
  align-items: end;
996
  justify-content: space-between;
997
  gap: 5px;
998
+ grid-column: 2 / -1;
999
+ justify-self: end;
1000
  }
1001
 
1002
  .totem-sparkline span {