Skip to content

Set error message not absolute #12802

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jun 23, 2025
Merged

Set error message not absolute #12802

merged 3 commits into from
Jun 23, 2025

Conversation

thomtrp
Copy link
Contributor

@thomtrp thomtrp commented Jun 23, 2025

Before
Capture d’écran 2025-06-23 à 18 52 50

After
Capture d’écran 2025-06-23 à 18 48 01
Capture d’écran 2025-06-23 à 18 48 38

Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

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

PR Summary

Changed error message positioning in form inputs from absolute to flow-based layout for improved UI consistency.

  • Modified InputHint component in packages/twenty-front/src/modules/ui/input/components/InputHint.tsx to support error states via a 'danger' prop
  • Replaced InputErrorHelper with InputHint in packages/twenty-front/src/modules/object-record/record-field/form-types/components/FormNumberFieldInput.tsx to fix error message positioning
  • Error messages now follow document flow instead of absolute positioning, preventing layout overlap issues

2 files reviewed, 1 comment
Edit PR Review Bot Settings | Greptile

@Devessier Devessier self-requested a review June 23, 2025 16:54
Copy link
Contributor

@Devessier Devessier left a comment

Choose a reason for hiding this comment

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

LGTM

@thomtrp thomtrp enabled auto-merge (squash) June 23, 2025 16:58
Copy link
Contributor

github-actions bot commented Jun 23, 2025

🚀 Preview Environment Ready!

Your preview environment is available at: http://bore.pub:64989

This environment will automatically shut down when the PR is closed or after 5 hours.

@thomtrp thomtrp merged commit f05da75 into main Jun 23, 2025
54 checks passed
@thomtrp thomtrp deleted the tt-fix-error-message-position branch June 23, 2025 17:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants