-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Conversation
sachinks07
commented
Sep 29, 2024
- This PR solves the issue Cursor should not be "pointer" when record image identifier is not editable Cursor should not be "pointer" when record image identifier is not editable #7277
There was a problem hiding this 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 toShowPageSummaryCard
inRecordShowContainer.tsx
, set to true only for 'person' objects - Implemented conditional cursor styling in
ShowPageSummaryCard.tsx
based onisAvatarEditable
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
There was a problem hiding this 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
packages/twenty-front/src/modules/object-record/record-show/components/RecordShowContainer.tsx
Outdated
Show resolved
Hide resolved
packages/twenty-front/src/modules/ui/layout/show-page/components/ShowPageSummaryCard.tsx
Outdated
Show resolved
Hide resolved
packages/twenty-front/src/modules/ui/layout/show-page/components/ShowPageSummaryCard.tsx
Outdated
Show resolved
Hide resolved
packages/twenty-front/src/modules/ui/layout/show-page/components/ShowPageSummaryCard.tsx
Outdated
Show resolved
Hide resolved
…in showsummaryCard
@martmull Thanks for the suggestion. Have made the changes with respect to the suggestions. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM thank you!
…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]>