Skip to content

Fix text wrap on condition fields#1527

Merged
rSnapkoOpenOps merged 3 commits intomainfrom
fix/text-wrap-on-condition-fields
Oct 28, 2025
Merged

Fix text wrap on condition fields#1527
rSnapkoOpenOps merged 3 commits intomainfrom
fix/text-wrap-on-condition-fields

Conversation

@rSnapkoOpenOps
Copy link
Collaborator

Fixes OPS-2919.

image image

@linear
Copy link

linear bot commented Oct 23, 2025

Comment on lines +117 to +122
'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',
textMentionUtils.inputThatUsesMentionClass,
{
'cursor-not-allowed opacity-50': disabled,
},
className,
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Custom class name was not used, so it's safe to change

@rSnapkoOpenOps rSnapkoOpenOps marked this pull request as ready for review October 23, 2025 15:37
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes text wrapping issues in condition input fields by adjusting horizontal padding. The fix ensures that text content in condition fields wraps properly without overflow.

Key Changes:

  • Added px-1 className to TextInputWithMentions components in condition settings
  • Repositioned className prop in TextInputWithMentions to allow overriding default padding

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 4 comments.

File Description
packages/react-ui/src/app/features/builder/step-settings/split-settings/single-condition.tsx Added px-1 className to both TextInputWithMentions instances to reduce horizontal padding
packages/react-ui/src/app/features/builder/step-settings/branch-settings/branch-single-condition.tsx Added px-1 className to both TextInputWithMentions instances to reduce horizontal padding
packages/react-ui/src/app/features/builder/block-properties/text-input-with-mentions/index.tsx Moved className prop after default classes to allow padding override

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

rSnapkoOpenOps and others added 2 commits October 23, 2025 17:39
…h-settings/branch-single-condition.tsx

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…-settings/single-condition.tsx

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@sonarqubecloud
Copy link

@rSnapkoOpenOps rSnapkoOpenOps merged commit fb0fe4a into main Oct 28, 2025
21 checks passed
@rSnapkoOpenOps rSnapkoOpenOps deleted the fix/text-wrap-on-condition-fields branch October 28, 2025 14:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants