Skip to content

Ladder grid: pass the column count as data-n, not an inline style the CSP blocks - #8

Merged
donglaiw merged 1 commit into
mainfrom
ladder-grid-csp
Nov 9, 2026
Merged

donglaiw merged 1 commit into
mainfrom
ladder-grid-csp

Conversation

@donglaiw

@donglaiw donglaiw commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

This commit was pushed to the modes-centered branch after #7 had already been merged, so it is still missing from main.

With style-src 'self' the inline --n never applied, so the month columns stacked into one column and the ‹ › buttons had nothing to scroll (hebb, 2026-11-09). planner.js now sets the property from a data-n attribute, which the CSP allows. Test asserts no inline style attribute in the ladder page.

🤖 Generated with Claude Code

… CSP blocks

With style-src 'self' the inline --n never applied, so the month columns stacked into
one column (hebb, 2026-11-09). planner.js sets the property from the data attribute.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@donglaiw
donglaiw merged commit 2cb5f36 into main Nov 9, 2026
1 check passed
@donglaiw
donglaiw deleted the ladder-grid-csp branch November 9, 2026 06:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant