Skip to content

Scroll only content tables, not all tables - #728

Open
stefanv wants to merge 1 commit into
mainfrom
scroll-content-tables-only
Open

stefanv wants to merge 1 commit into
mainfrom
scroll-content-tables-only

Conversation

@stefanv

@stefanv stefanv commented Oct 5, 2026

Copy link
Copy Markdown
Member

Wrap Markdown and yamlToTable tables in a scrolling div instead of making every table block-level. Tables from other sources keep normal table layout:

  • FullCalendar grids, which collapse when tables are block-level.
  • Chroma code blocks with line numbers (lineNumbersInTable).
  • Raw HTML tables in site layouts, such as the scientific-python.org SPEC list. These no longer scroll on their own.

Assisted-by: Claude Code:claude-opus-5-5

Wrap Markdown and yamlToTable tables in a scrolling div instead of
making every table block-level. Tables from other sources keep normal
table layout:

- FullCalendar grids, which collapse when tables are block-level.
- Chroma code blocks with line numbers (lineNumbersInTable).
- Raw HTML tables in site layouts, such as the scientific-python.org
  SPEC list. These no longer scroll on their own.

Assisted-by: Claude Code:claude-opus-5-5
@netlify

netlify Bot commented Oct 5, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for scientific-python-hugo-theme ready!

Name Link
🔨 Latest commit 0cf4536
🔍 Latest deploy log https://app.netlify.com/projects/scientific-python-hugo-theme/deploys/6ac42d3a452c6d00090f6e88
😎 Deploy Preview https://deploy-preview-728--scientific-python-hugo-theme.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 94
Accessibility: 97
Best Practices: 100
SEO: 91
PWA: -
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify project configuration.

@@ -0,0 +1,39 @@
<div class="table-wrapper">

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All this just to render the table-wrapper; wondering if we can't reuse the Hugo internal renderer?

@stefanv stefanv added the type: Bug fix Something isn't working label Oct 5, 2026
@stefanv

stefanv commented Oct 5, 2026

Copy link
Copy Markdown
Member Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: Bug fix Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant