Skip to content

Commit

Permalink
[docs] Fix Autocomplete country layout shift (#27814)
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviertassinari committed Aug 17, 2021
1 parent de69548 commit e0c6823
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/src/pages/components/autocomplete/CountrySelect.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export default function CountrySelect() {
autoHighlight
getOptionLabel={(option) => option.label}
renderOption={(props, option) => (
<Box component="li" sx={{ '& > img': { mr: 2 } }} {...props}>
<Box component="li" sx={{ '& > img': { mr: 2, flexShrink: 0 } }} {...props}>
<img
loading="lazy"
width="20"
Expand Down
2 changes: 1 addition & 1 deletion docs/src/pages/components/autocomplete/CountrySelect.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export default function CountrySelect() {
autoHighlight
getOptionLabel={(option) => option.label}
renderOption={(props, option) => (
<Box component="li" sx={{ '& > img': { mr: 2 } }} {...props}>
<Box component="li" sx={{ '& > img': { mr: 2, flexShrink: 0 } }} {...props}>
<img
loading="lazy"
width="20"
Expand Down

0 comments on commit e0c6823

Please sign in to comment.