Skip to content
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

table: make the header sticky #23

Merged
merged 5 commits into from Apr 23, 2022
Merged

table: make the header sticky #23

merged 5 commits into from Apr 23, 2022

Conversation

tylerkrupicka
Copy link
Contributor

@tylerkrupicka tylerkrupicka commented Apr 23, 2022

What Changed

Adds on to #22.

The table component now supports a sticky header when scrolling, mirroring the behavior in the network panel.

I moved to my own PR because I had to fix the resize observer logic, because it was reserving extra space even if the parent scrolled. Also added Adrian as a contributor, and fixed a bottom border double-up on Chrome.

Why

Make the table resize better with long lists.

What might be impacted

Todo:

  • Add tests
  • Add docs
📦 Published PR as canary version: 1.1.3-canary.23.465.0

✨ Test out this PR locally via:

npm install @devtools-ds/console@1.1.3-canary.23.465.0
npm install @devtools-ds/dom-inspector@1.1.3-canary.23.465.0
npm install @devtools-ds/diagnostic@1.1.3-canary.23.465.0
npm install @devtools-ds/icon@1.1.3-canary.23.465.0
npm install @devtools-ds/navigation@1.1.3-canary.23.465.0
npm install @devtools-ds/node@1.1.3-canary.23.465.0
npm install @devtools-ds/object-inspector@1.1.3-canary.23.465.0
npm install @devtools-ds/table@1.1.3-canary.23.465.0
npm install @devtools-ds/tree@1.1.3-canary.23.465.0
npm install @devtools-ds/create@1.1.3-canary.23.465.0
npm install @devtools-ds/docs@1.1.3-canary.23.465.0
npm install @devtools-ds/object-parser@1.1.3-canary.23.465.0
npm install @devtools-ds/port-controller@1.1.3-canary.23.465.0
npm install @devtools-ds/storybook-theme-addon@1.1.3-canary.23.465.0
npm install @devtools-ds/storybook-utils@1.1.3-canary.23.465.0
npm install @devtools-ds/themes@1.1.3-canary.23.465.0
# or 
yarn add @devtools-ds/console@1.1.3-canary.23.465.0
yarn add @devtools-ds/dom-inspector@1.1.3-canary.23.465.0
yarn add @devtools-ds/diagnostic@1.1.3-canary.23.465.0
yarn add @devtools-ds/icon@1.1.3-canary.23.465.0
yarn add @devtools-ds/navigation@1.1.3-canary.23.465.0
yarn add @devtools-ds/node@1.1.3-canary.23.465.0
yarn add @devtools-ds/object-inspector@1.1.3-canary.23.465.0
yarn add @devtools-ds/table@1.1.3-canary.23.465.0
yarn add @devtools-ds/tree@1.1.3-canary.23.465.0
yarn add @devtools-ds/create@1.1.3-canary.23.465.0
yarn add @devtools-ds/docs@1.1.3-canary.23.465.0
yarn add @devtools-ds/object-parser@1.1.3-canary.23.465.0
yarn add @devtools-ds/port-controller@1.1.3-canary.23.465.0
yarn add @devtools-ds/storybook-theme-addon@1.1.3-canary.23.465.0
yarn add @devtools-ds/storybook-utils@1.1.3-canary.23.465.0
yarn add @devtools-ds/themes@1.1.3-canary.23.465.0

@tylerkrupicka tylerkrupicka added the minor Minor version change label Apr 23, 2022
@tylerkrupicka tylerkrupicka changed the title Table sticky header table: make the header sticky Apr 23, 2022
@tylerkrupicka
Copy link
Contributor Author

tylerkrupicka commented Apr 23, 2022

Bundle Size Report

name master pr +/- %
@devtools-ds/themes 6.10 kB 6.45 kB 349.00 Bytes 6%
@devtools-ds/table 23.88 kB 23.45 kB -427.00 Bytes -2%
Total 29.98 kB 29.90 kB -78.00 Bytes -0.26%

❌ Failed! ❌

Courtesy of your bundle-size bot 📦🚀

@tylerkrupicka
Copy link
Contributor Author

Build Info

Your PR was successfully deployed by CircleCI #464

Storybook

@tylerkrupicka
Copy link
Contributor Author

Tested in Chrome and FF, looks good after box shadow changes

@tylerkrupicka tylerkrupicka merged commit 4b9829c into master Apr 23, 2022
@tylerkrupicka tylerkrupicka deleted the table-sticky-header branch April 23, 2022 05:45
@tylerkrupicka
Copy link
Contributor Author

🚀 PR was released in v1.2.0 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
minor Minor version change released
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants