-
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
Fixing last column width in table-view #7258
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 addresses issues with the last column width in the table view, focusing on improving layout and responsiveness.
- Modified
StyledTable
inRecordTable.tsx
to set width to 100%, fixing layout issues - Reduced width and max-width of table cells on mobile from 35px to 32px in
RecordTableTd.tsx
- Adjusted styling of the last column in
RecordTableHeaderLastColumn.tsx
, setting fixed width to 32px and removing left padding - Improved table responsiveness when wider than the screen, particularly affecting the last column
3 file(s) reviewed, 1 comment(s)
Edit PR Review Bot Settings
${({ isTableWiderThanScreen, theme }) => | ||
isTableWiderThanScreen | ||
? ` | ||
width: 32px; | ||
background-color: ${theme.background.primary}; | ||
` | ||
: ''}; |
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 removing this conditional styling as it's now redundant with the background-color set on line 26
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.
fix this please!
we are setting background color on line 26 too!
@bosiraphael wait on merge please
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.
I'll pick this as cleanup in another PR @ehconitin
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 for your contribution @sid0-0 :)
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.
left a comment
ah nvm i was late :(
fixes: #7160
table-layout: fixed
requires a width, added that.Screenshots:
Small screen: