Skip to content

Commit 006eb98

Browse files
committed
fix: prevent breaking input on multi-select
1 parent 1cd271f commit 006eb98

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

frontend/web/components/base/select/MultiSelect.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,8 +155,7 @@ const MultiSelect: React.FC<MultiSelectProps> = ({
155155
valueContainer: (base: any) => ({
156156
...base,
157157
flexWrap: 'wrap',
158-
gap: '4px',
159-
overflow: 'visible',
158+
gap: '2px',
160159
paddingBottom: '6px',
161160
paddingTop: '6px',
162161
}),

frontend/web/components/segments/Rule/components/RuleConditionRow.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ const RuleConditionRow: React.FC<RuleConditionRowProps> = ({
9090
<div
9191
className='d-flex flex-1 flex-row rule align-items-center justify-content-between gap-1 col-md-10'
9292
>
93-
<div className='col-10 col-md-4'>
93+
<div className='col-10 col-sm-4 col-md-4'>
9494
<RuleConditionPropertySelect
9595
dataTest={`${dataTest}-property-${ruleIndex}`}
9696
ruleIndex={ruleIndex}
@@ -111,7 +111,7 @@ const RuleConditionRow: React.FC<RuleConditionRowProps> = ({
111111
setRuleProperty(ruleIndex, 'operator', value)
112112
}}
113113
options={operators}
114-
className="col-10 col-md-3"
114+
className="col-10 col-sm-3 col-md-3"
115115
/>
116116
)}
117117
<RuleConditionValueInput
@@ -132,7 +132,7 @@ const RuleConditionRow: React.FC<RuleConditionRowProps> = ({
132132
})
133133
}}
134134
isValid={Utils.validateRule(rule) && !ruleErrors?.value}
135-
className='col-10 col-md-4'
135+
className='col-10 col-sm-4 col-md-4'
136136
/>
137137
</div>
138138
<div className='d-flex flex-sm-column flex-md-row gap-2'>

0 commit comments

Comments
 (0)