Skip to content

Commit

Permalink
fix: fix styles for mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
chybisov committed Jul 6, 2022
1 parent ff4f2a6 commit c3930ca
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion packages/widget/src/components/AppContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,13 @@ const CssBaselineContainer = styled(ScopedCssBaseline)(({ theme }) => ({

const RelativeContainer = styled(Box)(({ theme }) => ({
position: 'relative',
width: 392,
width: '100%',
minWidth: 375,
maxWidth: 392,
background: theme.palette.background.default,
overflow: 'auto',
flex: 1,
boxSizing: 'content-box',
}));

const ScrollableContainer = styled(Box)({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,14 @@ export const SelectTokenCardHeader = styled(CardHeader, {
textOverflow: 'ellipsis',
whiteSpace: 'nowrap',
overflow: 'hidden',
width: compact ? 92 : 244,
width: compact ? 92 : 224,
fontWeight: selected ? 500 : 400,
},
[`.${cardHeaderClasses.subheader}`]: {
textOverflow: 'ellipsis',
whiteSpace: 'nowrap',
overflow: 'hidden',
width: compact ? 92 : 244,
width: compact ? 92 : 224,
},
}),
);

0 comments on commit c3930ca

Please sign in to comment.