Skip to content

Commit fb0fe4a

Browse files
Fix text wrap on condition fields (#1527)
<!-- Ensure the title clearly reflects what was changed. Provide a clear and concise description of the changes made. The PR should only contain the changes related to the issue, and no other unrelated changes. --> Fixes OPS-2919. <img width="380" height="523" alt="image" src="https://github.com/user-attachments/assets/a6f4e98e-68fb-4bbd-a9de-3c81bc2d8062" /> <img width="385" height="422" alt="image" src="https://github.com/user-attachments/assets/4352b81b-5cdd-4db3-a8c9-19aaefd7fa8c" /> --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 6d04443 commit fb0fe4a

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

packages/react-ui/src/app/features/builder/block-properties/text-input-with-mentions/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,12 +114,12 @@ export const TextInputWithMentions = ({
114114
editorProps: {
115115
attributes: {
116116
class: cn(
117-
className ??
118-
' w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-1 disabled:cursor-not-allowed disabled:opacity-50',
117+
'w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-1 disabled:cursor-not-allowed disabled:opacity-50',
119118
textMentionUtils.inputThatUsesMentionClass,
120119
{
121120
'cursor-not-allowed opacity-50': disabled,
122121
},
122+
className,
123123
),
124124
},
125125
},

packages/react-ui/src/app/features/builder/step-settings/branch-settings/branch-single-condition.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ const BranchSingleCondition = ({
9999
placeholder={t('First value')}
100100
onChange={field.onChange}
101101
initialValue={field.value}
102+
className={'px-1'}
102103
></TextInputWithMentions>
103104
<FormMessage />
104105
</FormItem>
@@ -140,6 +141,7 @@ const BranchSingleCondition = ({
140141
disabled={readonly}
141142
initialValue={field.value ?? ''}
142143
onChange={field.onChange}
144+
className="px-1"
143145
></TextInputWithMentions>
144146
<FormMessage />
145147
</FormItem>

packages/react-ui/src/app/features/builder/step-settings/split-settings/single-condition.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ const SingleCondition = ({
7070
placeholder={t('First value')}
7171
onChange={field.onChange}
7272
initialValue={field.value}
73+
className={'px-1'}
7374
></TextInputWithMentions>
7475
<FormMessage />
7576
</FormItem>
@@ -111,6 +112,7 @@ const SingleCondition = ({
111112
disabled={readonly}
112113
initialValue={field.value ?? ''}
113114
onChange={field.onChange}
115+
className="px-1"
114116
></TextInputWithMentions>
115117
<FormMessage />
116118
</FormItem>

0 commit comments

Comments
 (0)