File tree Expand file tree Collapse file tree 3 files changed +3
-1
lines changed
builder/features/settings-panel/controls Expand file tree Collapse file tree 3 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ export const TextControl = ({
48
48
value = { localValue . value }
49
49
rows = { meta . rows ?? 1 }
50
50
// Set maxRows to 3 when meta.rows is undefined or equal to 1, otherwise set it to rows * 2
51
- maxRows = { Math . max ( 2 * ( meta . rows ?? 1 ) , 3 ) }
51
+ maxRows = { meta . maxRows ?? Math . max ( 2 * ( meta . rows ?? 1 ) , 3 ) }
52
52
onChange = { localValue . set }
53
53
onBlur = { localValue . save }
54
54
onSubmit = { localValue . save }
Original file line number Diff line number Diff line change @@ -245,6 +245,7 @@ export const Canvas = () => {
245
245
required : false ,
246
246
description :
247
247
"Describe the behavior of this layer and optionally its children." ,
248
+ maxRows : 20 ,
248
249
} ;
249
250
propsMeta . initialProps ??= [ ] ;
250
251
propsMeta . initialProps . push ( "comment" ) ;
Original file line number Diff line number Diff line change @@ -40,6 +40,7 @@ const Text = z.object({
40
40
* In line with Storybook team's plan: https://github.com/storybookjs/storybook/issues/21100
41
41
*/
42
42
rows : z . number ( ) . optional ( ) ,
43
+ maxRows : z . number ( ) . optional ( ) ,
43
44
} ) ;
44
45
45
46
const Resource = z . object ( {
You can’t perform that action at this time.
0 commit comments