Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
moo-onthelawn committed Oct 4, 2024
1 parent 5b608ce commit 25bc9e8
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
1 change: 0 additions & 1 deletion src/components/Tabs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,6 @@ const $Root = styled(Root)<{
--tabs-currentHeight: var(--tabs-height-mobile);
}
--toolbar-padding: 0 1rem;
--toolbar-width: ;
/* Rules */
Expand Down
2 changes: 1 addition & 1 deletion src/components/Toolbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,5 +45,5 @@ const $Root = styled(Root)<{ layout?: 'column' | 'row' }>`
row: layoutMixins.row,
}[layout]}
padding: var(--toolbar-padding);
padding: var(--toolbar-padding, 0 1rem);
`;
2 changes: 1 addition & 1 deletion src/pages/trade/VerticalPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -126,4 +126,4 @@ export const VerticalPanel = ({ tradeLayout }: { tradeLayout: TradeLayouts }) =>
const $Tabs = styled(Tabs)`
--toolbar-padding: 0;
--toolbar-width: 50%;
`;
` as typeof Tabs;
8 changes: 4 additions & 4 deletions src/views/CanvasOrderbook/OrderbookControls.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export const OrderbookControls = ({ className, assetId, grouping }: OrderbookCon
);

return (
<$OrderbookControlsContainer className={className} uiRefreshEnabled={uiRefresh}>
<$OrderbookControlsContainer className={className} $uiRefreshEnabled={uiRefresh}>
<div tw="flex justify-between gap-0.5">
<div tw="flex gap-0.5">
<Output
Expand Down Expand Up @@ -101,7 +101,7 @@ export const OrderbookControls = ({ className, assetId, grouping }: OrderbookCon
);
};

const $OrderbookControlsContainer = styled.div<{ uiRefreshEnabled: boolean }>`
const $OrderbookControlsContainer = styled.div<{ $uiRefreshEnabled: boolean }>`
color: var(--color-text-0);
font: var(--font-small-book);
Expand All @@ -114,8 +114,8 @@ const $OrderbookControlsContainer = styled.div<{ uiRefreshEnabled: boolean }>`
padding-bottom: 0.3rem;
}
${({ uiRefreshEnabled }) =>
!uiRefreshEnabled &&
${({ $uiRefreshEnabled }) =>
!$uiRefreshEnabled &&
css`
flex-direction: column-reverse;
`}
Expand Down

0 comments on commit 25bc9e8

Please sign in to comment.