Skip to content

Commit 315bff3

Browse files
Merge pull request #68 from sillsdev/BL-14362_spacing_fix
BL-14362 fix spacing around cards without much text (#68)
2 parents d0f0fc4 + 78b3cc7 commit 315bff3

File tree

1 file changed

+8
-0
lines changed
  • components/language-chooser/react/language-chooser-react-mui/src

1 file changed

+8
-0
lines changed

components/language-chooser/react/language-chooser-react-mui/src/OptionCard.tsx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,20 @@ export const OptionCard: React.FunctionComponent<
3535
<CardActionArea
3636
onClick={onClick || (() => undefined)}
3737
className={`option-card-button ${isSelected && "selected-option-card-button"} ${className}`}
38+
css={css`
39+
display: flex;
40+
flex-direction: column;
41+
`}
3842
>
3943
<Card
4044
variant="outlined"
4145
css={css`
4246
position: relative; // so children can be positioned absolutely
4347
box-shadow: ${theme.palette.grey[400]} 0px 3px 5px;
48+
49+
// fill up the entire card action area
50+
flex-grow: 1;
51+
width: 100%;
4452
`}
4553
sx={{
4654
bgcolor: `${backgroundColor}`,

0 commit comments

Comments
 (0)