@@ -30,7 +30,7 @@ const EntityAttributesDialog = ({ entity, fields, open, onClose }) => {
3030 if ( info . type === 'user' )
3131 return < Link sx = { { fontSize : '14px' } } label = { value } href = { `#/users/${ value } /` } />
3232 if ( info . type === 'json' )
33- return < pre > { JSON . stringify ( value , undefined , 2 ) } </ pre >
33+ return < pre style = { { margin : 0 } } > { JSON . stringify ( value , undefined , 2 ) } </ pre >
3434 if ( info . type === 'table' ) {
3535 if ( value ?. length > 0 ) {
3636 let columns = uniq ( flatten ( value . map ( val => keys ( val ) ) ) )
@@ -39,7 +39,7 @@ const EntityAttributesDialog = ({ entity, fields, open, onClose }) => {
3939 < TableRow >
4040 {
4141 columns . map (
42- col => < TableCell key = { col } sx = { { fontSize : '12px' } } > < b > { col } </ b > </ TableCell >
42+ col => < TableCell key = { col } sx = { { fontSize : '12px' , verticalAlign : 'top' } } > < b > { col } </ b > </ TableCell >
4343 )
4444 }
4545 </ TableRow >
@@ -50,7 +50,7 @@ const EntityAttributesDialog = ({ entity, fields, open, onClose }) => {
5050 < TableRow key = { index } >
5151 {
5252 columns . map ( col => (
53- < TableCell key = { col } >
53+ < TableCell key = { col } sx = { { verticalAlign : 'top' } } >
5454 < span style = { { display : 'inline-block' , maxWidth : '200px' , wordBreak : 'break-all' } } >
5555 { isBoolean ( val [ col ] ) ? val [ col ] . toString ( ) : val [ col ] || null }
5656 </ span >
@@ -104,7 +104,7 @@ const EntityAttributesDialog = ({ entity, fields, open, onClose }) => {
104104 key = { field }
105105 sx = { { '&:last-child td, &:last-child th' : { border : 0 } } }
106106 >
107- < TableCell component = "th" scope = "row" sx = { { fontSize : '12px' , color : 'rgba(0, 0, 0, 0.7)' } } >
107+ < TableCell component = "th" scope = "row" sx = { { fontSize : '12px' , color : 'rgba(0, 0, 0, 0.7)' , verticalAlign : 'top '} } >
108108 < span style = { { maxWidth : '125px' , display : 'inline-block' } } > { info ?. label } </ span >
109109 </ TableCell >
110110 < TableCell > { getValue ( field , info ) } </ TableCell >
0 commit comments