-
Notifications
You must be signed in to change notification settings - Fork 74
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
Unable to get table width to be responsive and fixed first column in table header not fixed #75
Comments
Hi, @nosizejosh |
This is the entire page, though some are layout and components, I have put all together to make it easier for you to run. Its a nuxt app so difficult to create and host a reproduction. I am using tailwind with default settings.
|
This style is applied in table component
on initial load, the borders show for a second before these styles are applied. I'm sure there's a way to prevent the default style showing for second before these styles are applied |
Hi , @nosizejosh
No, it's easy startup in codesandbox. I created nuxt.js + taliwind css sandbox on here, please fork it and reproduce this issue. thanks |
@linmasahiro I have run nuxt 3 here but it fails to run after installing table-lite |
@nosizejosh , I started an environment with Nuxt3 and vue3-table-lite on Codesanbox.io. |
@linmasahiro great news. while going through a step by step process to reproduce my issue with your sanbox, I discovered an extra div with flex was the culprit for 1 and 2. So they are both resolved now.
Now working to reproduce or solve for 3 |
I have been able to reproduce issue 3. The ID column header which is part of the fixed column moves on horizontal scroll. |
I accessed your link, but it's not work and output something error like below. Maybe not complete yet?
|
issue 3 reproduced here with your sandox |
Hi, @nosizejosh |
Hi, @nosizejosh , is this issue resolved now? |
Sorry for the late response. Yes it fixes the 3rd issue. However the left and right borders of the header of the fixed column are black and ignoring the styling I have which with the previous version showed no border color.
|
Because if using If you wanna be custom border or hide it, please add below to your style:
|
@cams03 Maybe your stylesheet contaminated component's stylesheet? I not sure before get more details. |
THIS FIX THE ISSUE OF THE RESPONSIVE ::v-deep(.vtl-table){ Please fix the code @linmasahiro |
Hi @overbost , I can't implement same problem. |
Hello @linmasahiro
My table on very large screens doesn't fill the entire width of the containing div as shown in attached image. The expectation was that the table will fill the screen on very large screen sizes and shrink on very small desktop sizes. It shrinks on mobile but not laptop or desktop
On normal laptop screens with the container div constrained, the expectation is that the table because is responsive will show the horizontal scroll bar so the overflow parts can be scrolled to, but this doesn't work on normal laptop screens. This expected horizontal scrolling works well on mobile screens. Image shows how table displays on a 15" laptop screen where the container div is shrunk by the sidebar. Without the sidebar all table elements show, the expectation was that the table will show a scroll bar so the overflow elements can be scrolled into view.
is-fixed-first-column implementation for my case seems to ignore the table header column, so the table header first column is not fixed but scrolls with the rest of the content. Image shows the first column in the table header scrolling while the rest of first column remains fixed on a mobile screen
my code is below
The text was updated successfully, but these errors were encountered: