File tree Expand file tree Collapse file tree 3 files changed +8
-1
lines changed Expand file tree Collapse file tree 3 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -69,6 +69,10 @@ map.set({}, 'world')
6969const set = new Set ( [ 1 , 2 , 3 ] )
7070
7171const superLongString = '1111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111'
72+ const multiLineString = `Lorem ipsum dolor sit amet,
73+ consectetur adipiscing elit.
74+ Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
75+ Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.`
7276
7377const example = {
7478 avatar,
@@ -101,6 +105,7 @@ const example = {
101105 [ 3 , 4 ]
102106 ] ,
103107 superLongString,
108+ multiLineString,
104109 function : aPlusB ,
105110 constFunction : aPlusBConst ,
106111 anonymousFunction : function ( a : number , b : number ) {
Original file line number Diff line number Diff line change @@ -22,7 +22,8 @@ export const stringType = defineEasyType<string>({
2222 component = 'span'
2323 sx = { {
2424 overflowWrap : 'anywhere' ,
25- cursor : hasRest ? 'pointer' : 'inherit'
25+ cursor : hasRest ? 'pointer' : 'inherit' ,
26+ whiteSpace : showRest ? 'pre-wrap' : 'normal'
2627 } }
2728 onClick = { ( ) => {
2829 if ( window . getSelection ( ) ?. type === 'Range' ) {
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ export const DataBox: FC<DataBoxProps> = props => (
1111 { ...props }
1212 sx = { {
1313 display : 'inline-block' ,
14+ verticalAlign : 'top' ,
1415 ...props . sx
1516 } }
1617 />
You can’t perform that action at this time.
0 commit comments