-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
🪟 🐛 Long source and destination names make the connection list table scroll horizontally #21759
🪟 🐛 Long source and destination names make the connection list table scroll horizontally #21759
Conversation
5a441d5
to
a6cccc1
Compare
airbyte-webapp/src/components/EntityTable/components/EntityNameCell.tsx
Outdated
Show resolved
Hide resolved
style={{ | ||
paddingLeft: column.customPadding?.left ?? SPACING_LG, | ||
paddingRight: column.customPadding?.right ?? SPACING_LG, | ||
width: column.customWidth ? `${column.customWidth}%` : column.collapse ? "0.0000000001%" : "auto", | ||
}} |
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.
Hmm.. just out of curiosity - why do we apply styling in the style
prop instead of className
?
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.
Table
is a shared component, just saved original logic (the same as we had with styled-components). The table supports those custom styles...
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.
Removed padding parameters since we do not use them at all
style={{ | ||
paddingLeft: cell.column.customPadding?.left ?? SPACING_LG, | ||
paddingRight: cell.column.customPadding?.right ?? SPACING_LG, | ||
width: cell.column.customWidth | ||
? `${cell.column.customWidth}%` | ||
: cell.column.collapse | ||
? "0.0000000001%" | ||
: "auto", | ||
}} |
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.
The same question here
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.
The same answer from above 🙂
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.
2677bc6
to
f0c98d7
Compare
f0c98d7
to
6f0de4d
Compare
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 👍
Passing to @edmundito and @tealjulia for another review
@tealjulia I think you will be interested to look, since pretty close issue was created recently - https://github.com/airbytehq/airbyte/issues/21941
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.
Changes look good. Tested connections, sources, and destinations lists, and resized windows. Noted a couple of nits that may be nice to fix but no need for re-approval.
airbyte-webapp/src/components/EntityTable/components/ConnectionStatusCell.module.scss
Outdated
Show resolved
Hide resolved
airbyte-webapp/src/components/EntityTable/components/ConnectorNameCell.module.scss
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.
This mismatch in padding/alignment of the headers and the inconsistent header highlighting were the main two things I was getting at in that issue. I don't think that should be part of this PR. |
…ll horizontally - Removed styled-components - Refactored Table component - Added responsive columns - Created new cell components
…ll horizontally - Removed styled-components - Refactored Table component - Added responsive columns - Created new cell components
…ll horizontally - Removed styled-components - Refactored Table component - Added responsive columns - Created new cell components
…ll horizontally - Removed styled-components - Refactored Table component - Added responsive columns - Created new cell components
8691621
to
7376885
Compare
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.
Retested the credits and connections pages locally. LGTM.
What
Closes #21274
How
Note: This PR is a temporary solution that fixes some bugs for this moment before we can start using the new Table component
Loom
https://www.loom.com/share/a442f62c9dd1406691b7e4af19d89c40