Skip to content
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

Fix cursor should not be pointer when record image identifier is not Editable #7320

Merged
merged 2 commits into from
Oct 1, 2024

Conversation

sachinks07
Copy link
Contributor

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

This pull request addresses issue #7277 by modifying the cursor behavior for non-editable record image identifiers.

  • Added isAvatarEditable prop to ShowPageSummaryCard in RecordShowContainer.tsx, set to true only for 'person' objects
  • Implemented conditional cursor styling in ShowPageSummaryCard.tsx based on isAvatarEditable prop
  • Cursor now defaults to 'default' instead of 'pointer' for non-editable avatars, improving UI consistency
  • Changes affect only the avatar/image area, not impacting other editable fields

2 file(s) reviewed, no comment(s)
Edit PR Review Bot Settings

Copy link
Contributor

@martmull martmull left a comment

Choose a reason for hiding this comment

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

Thanks, added a suggestion to simplify changes

@sachinks07
Copy link
Contributor Author

@martmull Thanks for the suggestion. Have made the changes with respect to the suggestions.

@martmull martmull enabled auto-merge (squash) September 30, 2024 10:19
@martmull martmull disabled auto-merge September 30, 2024 10:44
@sachinks07 sachinks07 requested a review from martmull October 1, 2024 01:59
@martmull martmull enabled auto-merge (squash) October 1, 2024 07:01
@martmull martmull disabled auto-merge October 1, 2024 07:01
Copy link
Contributor

@martmull martmull left a comment

Choose a reason for hiding this comment

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

LGTM thank you!

@martmull martmull merged commit 0d570ca into twentyhq:main Oct 1, 2024
5 of 11 checks passed
harshit078 pushed a commit to harshit078/twenty that referenced this pull request Oct 14, 2024
…Editable (twentyhq#7320)

- This PR solves the issue Cursor should not be "pointer" when record
image identifier is not editable twentyhq#7277

---------

Co-authored-by: Sachin KS <[email protected]>
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