-
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: Handling filename overflow in mobile viewports #7364
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 pull request optimizes the display of long filenames in the files page for mobile viewports, addressing issue #7330.
- Modified
StyledLink
inAttachmentRow.tsx
to useflex-grow: 1
andoverflow: auto
for better text overflow handling - Adjusted
StyledRow
layout to usejustify-content: space-between
for improved spacing - Updated
StyledLeftContent
to useflex-grow: 1
for flexible width allocation - Removed fixed width from
StyledLink
and addedwidth: 0
to allow proper text truncation
1 file(s) reviewed, 1 comment(s)
Edit PR Review Bot Settings
packages/twenty-front/src/modules/activities/files/components/AttachmentRow.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.
@sid0-0 Thanks for the fix, I used this nice use case to fix a long-standing problem with the overflow cascade of our page right container.
@Bonapara I refactored the activity list and rows into a common component to harmonize the UI. Before : After : |
@charlesBochet I fixed the show page right container overflow mismatch which was causing a lot of unwanted scrolling behaviors and forced us to apply CSS tricks to force overflow into deeply nested child components. |
@lucasbordeau related to #7516 ? |
Thanks @sid0-0 for your contribution! |
Fixes twentyhq#7330 Fixes twentyhq#7516 <div style="display: flex"> <img style="max-width:50%" src="https://github.com/user-attachments/assets/51027a9d-8745-4cc7-9f17-4000e3615e44"/> <img style="max-width:50%" src="https://github.com/user-attachments/assets/827f69ba-c581-402f-9498-6b1a4dde7b69"/> </div> --------- Co-authored-by: sid0-0 <[email protected]> Co-authored-by: Lucas Bordeau <[email protected]>
Fixes #7330
Fixes #7516