Skip to content

Commit

Permalink
feat: style twap table layout
Browse files Browse the repository at this point in the history
  • Loading branch information
fairlighteth committed Jan 15, 2025
1 parent 31f582d commit 7f6112b
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -115,12 +115,17 @@ export const TableRow = styled(TableHeader)<{
}>`
grid-template-rows: minmax(var(--row-height), 1fr);
background: ${({ isChildOrder, isExpanded }) =>
isExpanded || isChildOrder ? `var(${UI.COLOR_PAPER_DARKER})` : 'transparent'};
isExpanded && !isChildOrder
? `var(${UI.COLOR_INFO_BG})`
: isChildOrder
? `var(${UI.COLOR_PAPER_DARKER})`
: 'transparent'};
transition: background var(${UI.ANIMATION_DURATION}) ease-in-out;
display: grid;
&:hover {
background: var(${UI.COLOR_PAPER_DARKER});
background: ${({ isExpanded, isChildOrder }) =>
isExpanded && !isChildOrder ? `var(${UI.COLOR_INFO_BG})` : `var(${UI.COLOR_PAPER_DARKER})`};
}
> div:first-child {
Expand Down

0 comments on commit 7f6112b

Please sign in to comment.