File tree Expand file tree Collapse file tree
docs/data/material/components/material-icons Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -399,6 +399,12 @@ const DialogDetails = React.memo(function DialogDetails(props) {
399399 onClick = { handleClick ( 2 ) }
400400 code = { `import ${ selectedIcon . importName } Icon from '@mui/icons-material/${ selectedIcon . importName } ';` }
401401 language = "js"
402+ sx = { {
403+ '& pre' : {
404+ whiteSpace : 'pre-wrap' ,
405+ wordBreak : 'break-all' ,
406+ } ,
407+ } }
402408 />
403409 </ Tooltip >
404410 < ImportLink
@@ -409,13 +415,13 @@ const DialogDetails = React.memo(function DialogDetails(props) {
409415 { t ( 'searchIcons.learnMore' ) }
410416 </ ImportLink >
411417 < DialogContent >
412- < Grid container >
413- < Grid size = "grow" >
414- < Grid container sx = { { justifyContent : 'center' } } >
418+ < Grid container spacing = { 2 } sx = { { rowGap : { xs : 3 , sm : 0 } } } >
419+ < Grid size = { { xs : 12 , sm : 6 } } >
420+ < Grid container sx = { { justifyContent : 'center' , alignItems : 'center' , height : '100%' } } >
415421 < CanvasComponent as = { selectedIcon . Component } />
416422 </ Grid >
417423 </ Grid >
418- < Grid size = "grow" >
424+ < Grid size = { { xs : 12 , sm : 6 } } >
419425 < Grid
420426 container
421427 sx = { { alignItems : 'flex-end' , justifyContent : 'center' } }
@@ -442,7 +448,7 @@ const DialogDetails = React.memo(function DialogDetails(props) {
442448 </ Tooltip >
443449 </ Grid >
444450 </ Grid >
445- < Grid container sx = { { justifyContent : 'center' } } >
451+ < Grid container sx = { { justifyContent : 'center' , mt : 1 } } >
446452 < ContextComponent
447453 as = { selectedIcon . Component }
448454 contextColor = "primary"
You can’t perform that action at this time.
0 commit comments