tfrere commited on
Commit
f9afc45
1 Parent(s): 8540ae4

fix size of model column

Browse files
frontend/src/pages/LeaderboardPage/components/Leaderboard/components/Table/Table.js CHANGED
@@ -613,7 +613,7 @@ const LeaderboardTable = ({
613
  <col
614
  key={column.id}
615
  style={
616
- index < 3
617
  ? {
618
  width: column.columnDef.size,
619
  minWidth: column.columnDef.size,
@@ -621,7 +621,7 @@ const LeaderboardTable = ({
621
  }
622
  : {
623
  minWidth: column.columnDef.size,
624
- width: `${100 / (table.getAllColumns().length - 3)}%`,
625
  }
626
  }
627
  />
 
613
  <col
614
  key={column.id}
615
  style={
616
+ index < 4
617
  ? {
618
  width: column.columnDef.size,
619
  minWidth: column.columnDef.size,
 
621
  }
622
  : {
623
  minWidth: column.columnDef.size,
624
+ width: `${100 / (table.getAllColumns().length - 4)}%`,
625
  }
626
  }
627
  />
frontend/src/pages/LeaderboardPage/components/Leaderboard/constants/defaults.js CHANGED
@@ -76,7 +76,7 @@ const FILTERS = {
76
  const COLUMN_SIZES = {
77
  RANK: 65,
78
  TYPE_ICON: 65,
79
- MODEL: 380,
80
  AVERAGE_SCORE: 150,
81
  BENCHMARK: 110,
82
  CO2_COST: 140,
 
76
  const COLUMN_SIZES = {
77
  RANK: 65,
78
  TYPE_ICON: 65,
79
+ MODEL: 400,
80
  AVERAGE_SCORE: 150,
81
  BENCHMARK: 110,
82
  CO2_COST: 140,