Skip to content

Commit

Permalink
Merge pull request #44 from lidofinance/feature/si-756-fix-the-select…
Browse files Browse the repository at this point in the history
…or-layout

fix: rewards currency selector layout
  • Loading branch information
itaven authored Sep 7, 2023
2 parents 0184f1a + ed90d17 commit a889c99
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 10 deletions.
23 changes: 16 additions & 7 deletions features/rewards/components/CurrencySelector.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,30 @@ import { STORAGE_CURRENCY_KEY } from 'config';

const StyledSelect = styled(Select)`
height: 32px;
width: 70px;
width: 72px;
border-radius: 6px;
& span {
padding: unset;
& > span {
border-radius: ${({ theme }) => theme.borderRadiusesMap.sm}px;
}
& input {
display: block;
font-size: 12px;
font-weight: 400;
vertical-align: middle;
line-height: 1em;
}
& span:nth-of-type(2) {
padding-left: unset;
& span span {
padding-left: 0;
}
`;

const OptionStyled = styled(Option)`
span {
font-weight: 400;
}
`;

Expand Down Expand Up @@ -53,9 +62,9 @@ const CurrencySelector = ({ currency, onChange }: CurrencySelectorProps) => (
variant="small"
>
{CURRENCIES.map((cur) => (
<Option key={cur.id} value={cur.id}>
<OptionStyled key={cur.id} value={cur.id}>
{cur.code}
</Option>
</OptionStyled>
))}
</StyledSelect>
</Box>
Expand Down
5 changes: 2 additions & 3 deletions features/rewards/components/export/Exportstyled.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ import { Button } from '@lidofinance/lido-ui';
export const ButtonStyle = styled(Button)`
font-weight: 400;
height: 32px;
width: 83px;
min-width: unset;
padding: unset;
padding: 0 15px;
font-size: 12px;
`;

0 comments on commit a889c99

Please sign in to comment.