-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
🪟 🎨 Streams table design pass [with fix] #19431
🪟 🎨 Streams table design pass [with fix] #19431
Conversation
Confirmed visually that this fixes the arrow bug |
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.
When testing, a couple of issues while testing the existing table. It looks like because of the flushing of the card, some of the padding was lost around the table. You can see in this screenshot that the +
and -
icons are too close to the edge and on the right side the row does not have the padding it had before:
airbyte-webapp/src/components/connection/CatalogTree/next/CatalogTreeTableRow.module.scss
Outdated
Show resolved
Hide resolved
@@ -5,16 +5,37 @@ $icon-size: 15px; | |||
.container { | |||
display: flex; | |||
flex-direction: row; | |||
justify-content: space-between; | |||
padding: variables.$spacing-lg calc(variables.$spacing-lg * 2); | |||
padding: variables.$spacing-xl calc(#{variables.$spacing-lg} * 2) 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.
Same suggestion as above. No need to use the calc since it will appear in css as calc(10px * 2)
instead of 20px
when adding sass vars.
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.
Thanks! For my own understanding.... the right time to use calc
is when you're referring to something outside of the css vars as part of the expression (like 10%
)... but if you're just evaluating something with the variables and a static number, simply put the variable?
…logTreeTableRow.module.scss Co-authored-by: Edmundo Ruiz Ghanem <[email protected]>
I left #17937 open with a note RE: the headers. |
Addressed offline feedback RE: alignment of the search bar and card heading for the sync catalog on the "classic view" + 1 more item (the left padding on icons for an enabled/disabled row) on the "new view". |
@@ -583,6 +583,9 @@ exports[`CreateConnectionForm should render 1`] = ` | |||
<div | |||
class="<removed-for-snapshot-test>" | |||
> | |||
<div |
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.
extra div is because i fixed some bad alignment in the header
@@ -530,6 +530,9 @@ exports[`ConnectionReplicationTab should render 1`] = ` | |||
<div | |||
class="<removed-for-snapshot-test>" | |||
> | |||
<div |
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.
same as other snapshot file... added this div to fix header alignment some
* Revert "Revert "🪟 🎨 Streams table design pass (#18908)" (#19397)" This reverts commit ebbe5a9. * remove min-width 0 that broke the table * Update airbyte-webapp/src/components/connection/CatalogTree/next/CatalogTreeTableRow.module.scss Co-authored-by: Edmundo Ruiz Ghanem <[email protected]> * fix styling for master table with (padding) * fix alignment somewhat on master view * fix padding differences between old/new tables * fix icon alignment in new table rows * update snapshots Co-authored-by: Edmundo Ruiz Ghanem <[email protected]>
Reverts #19397 and removes the broken CSS from the original PR.
When the stream tables design pass was originally merged, there was an unneeded
min-width: 0
that caused the fields panel dropdown arrow to disappear on the master table (IE: not the one hidden behind the .env variable)This PR removes that
min-width: 0
It does not cause and visual changes to the main table, but does re-introduce the styles for our new sync catalog table!