Commit 0dc6c22
Don't make the outer table knowl box a horizontal scroll container
Review of PR #20 pointed out that the added `overflow-x: auto` on
`td > .knowl-output` turns the box into a scroll container, which exposes
the scrollable overflow of the absolutely positioned `.knowl-footer`
(`width: 100%` starting after the parent's 10px left padding, plus its own
10px left padding). Measured in the browser, that is 20px of scroll range
on every table knowl, so even a short knowl whose content fits gained a
horizontal scrollbar (box height 123px -> 138px).
The declaration was also redundant: `.knowl-content` already has
`max-width: 100%; overflow: auto` and is the right inner scroller for
over-wide content. Drop `overflow-x` (so the box keeps the inherited
`overflow: hidden`) and reword the comment accordingly.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>1 parent 30fd86d commit 0dc6c22
1 file changed
Lines changed: 2 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1178 | 1178 | | |
1179 | 1179 | | |
1180 | 1180 | | |
1181 | | - | |
1182 | | - | |
| 1181 | + | |
| 1182 | + | |
1183 | 1183 | | |
1184 | 1184 | | |
1185 | | - | |
1186 | 1185 | | |
1187 | 1186 | | |
1188 | 1187 | | |
| |||
0 commit comments