Very huge table: horizontal scroll bar is out of reach #325
-
Hi, thank you so much for the beautiful A page with a large data table that is wider and longer than the displayed area cannot be navigated easily.. The horizontal scroll-bar is present but sticks at the bottom of the table (not at the bottom of the visible part of the page). This makes the wide-and-long table very cumbersome to read: a user has to scroll down before they can scroll horizontally. The same problem shows up with the Also Could you give me a pointer how to work around this? (This behavior shows up on Vivaldi (Chrome-like), Firefox, and Seamonkey on Slackware linux) |
Beta Was this translation helpful? Give feedback.
Replies: 8 comments 3 replies
-
Please share screenshot, and provide example markup that can be used to recreate this behaviour. |
Beta Was this translation helpful? Give feedback.
-
In the screenshots, the mouse pointer is at a scroll-bar. Note that in alabaster-no-extra-css-bottom-long-giant-table furo-no-extra-css-bottom-long-giant-table long-giant-table.rst: long_giant_table-rst.txt The body {
/* overflow-y: scroll; /* Show vertical scrollbar */
/* overflow-x: scroll; /* Show horizontal scrollbar */ /* ... */
/* scrollbar-gutter: auto | stable && both-edges? */
font-family: sans-serif;
}
table{
/* scrollbar-gutter: auto | stable && both-edges? */
/* overflow:scroll; */
}
td, th {
white-space: nowrap;
text-align: left;
}
td {
font-family: monospace;
} |
Beta Was this translation helpful? Give feedback.
-
Sorry never know how to nicely get pasted code to show in these boxes...
Edit (no pencil at my end ;-( : but thanks for the tip; fab! body {
/* overflow-y: scroll; /* Show vertical scrollbar */
/* overflow-x: scroll; /* Show horizontal scrollbar */ /* ... */
/* scrollbar-gutter: auto | stable && both-edges? */
font-family: sans-serif;
} |
Beta Was this translation helpful? Give feedback.
-
Is it linked to the ability of The |
Beta Was this translation helpful? Give feedback.
-
Hi, changing content width from 46em to 100% shows more of the table (like Alternatively, using flex-basis: 100% seems to work better (it keeps the scroll-bar at the bottom of the table when stuff gets out of sight.) .page .main .content {
flex-basis: 100%;
} I guess one has to turn their ipad/mobile to landscape to keep all in view but at least there are enough indications that there is more to see than before. |
Beta Was this translation helpful? Give feedback.
-
Yes, the presence of that Trying things out on https://codepen.io/JosephSilber/pen/qGebw?editors=1100 (replacing what's there with attached) did not help to find a better way around;
|
Beta Was this translation helpful? Give feedback.
-
Unlike Alabaster, Furo uses the region on the right of the content, and thus, any overflow needs to be contained; which is why the table is scrollable in the manner that it is. I’m not sure there’s any way to have a scroll bar on the bottom of the page be related to the positioning of the table. |
Beta Was this translation helpful? Give feedback.
-
I was facing a similar issue and my workaround is to put the whole table into a smaller box, then at least you can get to the scroll bars more easily I used the following css: .wide-table {
/* .sidebar-drawer + .content padding */
width: calc(100vw - calc(max(calc((100vw - 82em) / 2 + 21em), 21em)));
/* .content + .toc-drawer */
/* max-width: 61em; */
max-height: calc(90vh - 2em);
}
@media (max-width: 82em) {
.wide-table {
width: calc(100vw - calc((100vw - 67em) / 2 + 21em));
}
}
@media (max-width: 67em) {
.wide-table {
width: calc(100vw - 6em);
margin-left: calc(3em + calc(-50vw + 50%));
max-height: calc(90vh - calc(2em + var(--header-height)));
}
}
@media (max-width: 46em) {
.wide-table {
width: calc(100vw - 2em);
margin-left: calc(1em + calc(-50vw + 50%));
}
} I chose to manually add an extra you can see an example of it on https://irssi.org/security/ of course the right toc needs to be empty |
Beta Was this translation helpful? Give feedback.
Unlike Alabaster, Furo uses the region on the right of the content, and thus, any overflow needs to be contained; which is why the table is scrollable in the manner that it is.
I’m not sure there’s any way to have a scroll bar on the bottom of the page be related to the positioning of the table.