fix(editor): Fix design system form component sizing (#10961)

This commit is contained in:
Csaba Tuncsik 2024-09-25 11:30:21 +02:00 committed by GitHub
parent af20ccbbad
commit cf153ea085
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 5 additions and 1 deletions

View file

@ -193,6 +193,7 @@ defineExpose({ inputRef });
:label="label"
:tooltip-text="tooltipText"
:required="required && showRequiredAsterisk"
:size="labelSize"
>
<template #content>
{{ tooltipText }}
@ -210,6 +211,7 @@ defineExpose({ inputRef });
:label="label"
:tooltip-text="tooltipText"
:required="required && showRequiredAsterisk"
:size="labelSize"
>
<div :class="showErrors ? $style.errorInput : ''" @keydown.stop @keydown.enter="onEnter">
<slot v-if="hasDefaultSlot" />
@ -223,6 +225,7 @@ defineExpose({ inputRef });
:disabled="disabled"
:name="name"
:teleported="teleported"
:size="tagSize"
@update:model-value="onUpdateModelValue"
@focus="onFocus"
@blur="onBlur"
@ -246,6 +249,7 @@ defineExpose({ inputRef });
:maxlength="maxlength"
:autocomplete="autocomplete"
:disabled="disabled"
:size="tagSize"
@update:model-value="onUpdateModelValue"
@blur="onBlur"
@focus="onFocus"

View file

@ -5,7 +5,7 @@ import N8nIcon from '../N8nIcon';
import N8nText from '../N8nText';
import N8nTooltip from '../N8nTooltip';
const SIZE = ['small', 'medium'] as const;
const SIZE = ['small', 'medium', 'large'] as const;
interface InputLabelProps {
compact?: boolean;