Skip to content

Commit

Permalink
comment
Browse files Browse the repository at this point in the history
  • Loading branch information
gsteenkamp89 committed Apr 11, 2024
1 parent 5b05300 commit 93e734b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/plugins/oSnap/components/Input/MethodParameter.vue
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ const paramType = computed(() => {
if (inputType.value.input === 'array') {
return `(${inputType.value.type}[])`;
}
// tuple type labels can be too long and take up too much space, limit to 2
return inputType.value.type.length > 2
? `( ${inputType.value.type.slice(0, 2)}...[ ] )`
: inputType.value.type;
Expand Down

0 comments on commit 93e734b

Please sign in to comment.