-
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
feat: improved table scrolling #7731
feat: improved table scrolling #7731
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 enhances table scrolling by implementing smoother transitions and adjusting column widths, addressing the issues raised in #7515, particularly for mobile devices.
- Added transition effect (0.3s ease) to header cells in
RecordTableHeaderCell.tsx
for smoother scrolling - Increased left positioning of second and third columns in
RecordTableBodyDroppable.tsx
for better alignment - Removed 'hideTitle' prop from StyledTitle in
RecordTableColumnHead.tsx
, potentially affecting mobile view - Significantly increased third column width (30px to 150px) for mobile devices in
RecordTableHeader.tsx
, which may impact small screen layouts
4 file(s) reviewed, 1 comment(s)
Edit PR Review Bot Settings | Greptile
@@ -30,6 +30,7 @@ const StyledColumnHeaderCell = styled.th<{ | |||
color: ${({ theme }) => theme.font.color.tertiary}; | |||
padding: 0; | |||
text-align: left; | |||
transition: 0.3s ease; |
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.
style: Consider using a shorter duration for a snappier feel, e.g., '0.2s ease'
Hi @Khaan25 we want to keep the following behavior on mobile: |
Alright. Will do it |
2024-10-16.19-37-06.mp4 |
@Bonapara Can you please close this? I can see another issue open, I cna work on that? |
@Khaan25, this looks great! Can you make these two fixes? Desired:The shape of mobile chips should be square: Current:the chip has an extra right padding Also can you add a small margin at the right of the chips & + button? DesiredCurrent(No margin right) |
Sure. I was thinking to ask you about this - Great you brought it up 💪 |
One more question, Can I unassign myself from the Issue and assign myself to any other issue? Will I get points for this PR as well or first finish it then move on? |
We should finish so we don't lose track of things. Additionally, the bot doesn't allow assigning oss.gg issues to someone if they are already assigned to another issue.. |
RIght. It was a simple CSS fix so I thought I could get points for that one as well while you review this one :) Anyway, Thank you. It's my first time contributing open source |
If it's a minor CSS fix, let's make an exception. Tag me, and I'll assign it to you if no one else is assigned ;) |
But now it's too late, someone assign himself 😄 - I'll tag you next time. Thank you for the support |
Can you assign this to me? #7757 |
Can you assign this to me? #7757 |
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
(updates since last review)
This PR continues to refine table scrolling improvements, focusing on transition effects and mobile responsiveness.
- Added transition effect (0.3s ease) to table body cells in
RecordTableBodyDroppable.tsx
for consistent smooth scrolling - Implemented 'hideTitle' prop in
RecordTableColumnHead.tsx
to improve first column readability on mobile - Fine-tuned positioning and sizing of header elements in
RecordTableHeader.tsx
for better mobile scrolling experience - Ensured consistent transition effects across table components for a unified scrolling behavior
4 file(s) reviewed, 4 comment(s)
Edit PR Review Bot Settings | Greptile
z-index: 5; | ||
transition: 0.3s ease; |
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.
style: Consider applying transition to all sticky columns for consistent behavior
...-front/src/modules/object-record/record-table/record-table-cell/components/RecordTableTd.tsx
Show resolved
Hide resolved
...-front/src/modules/object-record/record-table/record-table-cell/components/RecordTableTd.tsx
Show resolved
Hide resolved
Sorry, I wasn't quick enough, which is why it's not that simple 😅 |
You can unassign him and assign me? 😂 P.S. wrapping up this one as well |
That would not be fair :) |
Haha, I know but if it occurs again? Can I unassign myself from this issue and assign myself to new issue and still get points for PR? If that's the option then it would be great :) |
Quick question, if you don't mind, How do I see the issues that have points and are not assigned? Can't figure that out from the search :( Have to search from the long list. |
Can you please assign this to me? #4588 |
You need to comment on it |
Perfect. Gimme few minutes |
@Bonapara Fixed |
Hey, could you review it? I can work on other issues? |
@lucasbordeau looks good to me from a design point of view if you want to proceed with the code review |
Hey hey, any update on this? :) |
Any update :) |
@lucasbordeau will review it today @Khaan25 ;) |
@Bonapara Finally it's done 🎉:) |
@Bonapara, could you please assign me points for this one? :) |
/award 300 |
Awarding Khaan25: 300 points 🕹️ Well done! Check out your new contribution on oss.gg/Khaan25 |
I'm unsure if we want to rely on the Lines 32 to 42 in 8533fac
|
@Bonapara Is it ok for you ? |
Yes @lucasbordeau, I think it was! |
Follow-up issue : #8307 |
Thanks @Khaan25 for your contribution! |
This PR fixes #7515
Demo:
2024-10-16.09-06-19.mp4