-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
relations header button to appear at all times for mobile devices #7044
Conversation
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 PR addresses the visibility of relation header buttons on mobile devices, improving user experience and discoverability of actions.
- Modified
RecordDetailRelationSection.tsx
to useuseIsMobile
hook for detecting mobile devices - Adjusted visibility of add/edit button to always show on mobile, not just on hover
- Removed
displayOnHover
class for mobile devices inLightIconButton
component - Improved accessibility for new users on mobile by making dropdown actions more apparent
1 file(s) reviewed, no comment(s)
Edit PR Review Bot Settings
@@ -54,6 +55,7 @@ export const RecordDetailRelationSection = ({ | |||
} = fieldDefinition.metadata as FieldRelationMetadata; | |||
const record = useRecoilValue(recordStoreFamilyState(recordId)); | |||
|
|||
const isMobile = useIsMobile(); |
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.
Or should I pass in the prop in either Context or to the component from RecordShowContainer?
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.
Hello @ehconitin ! Thank you for contributing :) LGTM, left a comment
...s/object-record/record-show/record-detail-section/components/RecordDetailRelationSection.tsx
Outdated
Show resolved
Hide resolved
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
Thanks @ehconitin for your contribution! |
fixes #7036