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
#895 - Improve table used on the /settings/api page #976
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
I think this is just starting out, right? I notice that when scaling the table down the headers don't collapse correctly: |
Sorry, this is still in progress. I was just testing this out if this is a good one to work on. @jacksonh - When you said that headers don't collapse, you mean - we don't want to show headers at all on small screens? |
@rupin90 oh sorry i mean they dont move with the table, we do want to show them |
Hey @rupin90 I noticed two things:
|
Thank you, wil look into it tonight 🙏 |
I have updated the name to Z-index issue is fixed now. Modal didn't have any z-index so I just gave it to Modal since that would be always be the top view if |
Also I have tried different ways to customize the layout of the table - it has been very tricky so I have asked the community on how to customize the look and feel for the table - coston/react-super-responsive-table#382 The I also tried the typical way adding a className but the output is like Not sure if this was faced before in our codebase. |
Aah nice, Thank you 🙏🏽 . Will do it just now. |
@@ -102,7 +102,7 @@ export function TableNew(props: TableProps): JSX.Element { | |||
}, | |||
}} | |||
> | |||
<Table> | |||
<ResponsiveTable> |
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.
👏🏽 Cool!
@@ -106,7 +106,7 @@ export function Table(props: TableProps): JSX.Element { | |||
}, | |||
}} | |||
> | |||
<StyledTable> | |||
<StyledTable css={{ /* can also style here now */ }}> |
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.
Thank you
@jacksonh - Thank you, this is PR ready |
Hey @rupin90 one thing I notice is in small there's a black outline we don't need: |
You mean the black border around the table? okay I can remove that. |
Hey @jacksonh - how is this? |
This looks great, thanks. I'm going to merge it now. |
Here is the behavior of the Table on different screen sizes. Finally was able to lay out the CSS. Somehow it wasn't as straight forward as I thought.
Leveraged NPM package - https://github.com/coston/react-super-responsive-table
Remaining Items:-
localhost_3000_settings_api.1.mp4