Skip to content

Commit

Permalink
ContestantInfoScoreLabel width in visual (#198)
Browse files Browse the repository at this point in the history
Co-authored-by: Kostya Bats <[email protected]>
  • Loading branch information
kbats183 and Kostya Bats authored Sep 6, 2024
1 parent 9a42857 commit 95beed6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { Award } from "@shared/api";
const ContestantInfoLabel = styled(RankLabel)`
flex-shrink: 0;
align-self: stretch;
width: 32px;
width: ${c.CONTESTER_INFO_RANK_WIDTH};
padding-left: 4px;
`;

Expand Down Expand Up @@ -41,7 +41,7 @@ const ContestantInfoWrap = styled.div<{round: boolean}>`
const ContestantInfoScoreLabel = styled(ShrinkingBox)`
flex-shrink: 0;
box-sizing: content-box;
width: 51px;
width: ${c.CONTESTER_INFO_SCORE_WIDTH};
padding-right: 20px;
`;

Expand Down
2 changes: 2 additions & 0 deletions src/frontend/overlay/src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,8 @@ config.CONTESTER_BACKGROUND_COLOR = config.CONTEST_COLOR;
config.CONTESTER_ROW_BORDER_RADIUS = config.GLOBAL_BORDER_RADIUS;
config.CONTESTER_ROW_HEIGHT = "32px";
config.CONTESTER_NAME_WIDTH = "150px";
config.CONTESTER_INFO_SCORE_WIDTH = "51px";
config.CONTESTER_INFO_RANK_WIDTH = "32px";

config.TIMELINE_ELEMENT_DIAMETER = 25;
config.TIMELINE_BORDER_RADIUS = config.GLOBAL_BORDER_RADIUS;
Expand Down

0 comments on commit 95beed6

Please sign in to comment.