-
-
Notifications
You must be signed in to change notification settings - Fork 742
Wide tables should scroll horizontally within the page #998
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
Comments
I tried this out and it did cause one problem with plugins: |
So maybe this is blocked on #987 and adding a new hook in the HTML which plugins like |
This may require updates to the column action menu JavaScript too, since it was not built with scrolling sideways in mind. |
Easiest fix for the column action menu positioning - hide them when the user scrolls the containing div: document.querySelector('.table-wrapper').addEventListener(
'scroll', () => document.querySelector('.dropdown-menu').style.display = 'none'
); |
This isn't blocked on #987 - it just means that |
This is now live here: https://global-power-plants.datasettes.com/global-power-plants/global-power-plants |
Hello Simon, Datasette 0.50: horizontal scrollbar Datasette 0.51 and superior: no horizontal scrollbar Thanks, |
Wrap the main table in
<div style="overflow-x: auto">
The text was updated successfully, but these errors were encountered: