mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-09-05 00:03:08 +00:00
fix multiline arg
This commit is contained in:
@@ -81,10 +81,9 @@
|
||||
}
|
||||
|
||||
function recomputeRowSize(str: string) {
|
||||
if (str.length > 50) {
|
||||
minRows = 3
|
||||
}
|
||||
if (type != 'string') {
|
||||
if (type == 'string') {
|
||||
minRows = str.split('\n').length
|
||||
} else if (type != 'string') {
|
||||
minRows = Math.max(minRows, Math.min(str.split(/\r\n|\r|\n/).length + 1, maxRows))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user