Skip to content

Fix nested container overflow in heading prettyblock#999

Merged
CySSoO merged 1 commit intoprettyblockfrom
cyssoo/fix-container-overflow-in-title-block
Mar 9, 2026
Merged

Fix nested container overflow in heading prettyblock#999
CySSoO merged 1 commit intoprettyblockfrom
cyssoo/fix-container-overflow-in-title-block

Conversation

@CySSoO
Copy link
Contributor

@CySSoO CySSoO commented Mar 9, 2026

Motivation

  • Prevent horizontal overflow caused by rendering a nested .container inside an existing .container > .row for heading/title blocks.

Description

  • Adjusted the wrapper condition in views/templates/hook/prettyblocks/prettyblock_heading.tpl so the inner .container is rendered only when default.force_full_width is true instead of when default.container is true.
  • This removes the problematic container > row > container structure while preserving the constrained inner wrapper for full-width blocks.

Testing

  • Inspected the template diff with git diff to confirm the conditional change and the single-line edit succeeded; result was as expected (success).
  • Verified the file contents with nl -ba views/templates/hook/prettyblocks/prettyblock_heading.tpl | sed -n '20,45p' to ensure the new condition appears in the correct location (success).
  • Committed the change with git commit and prepared the PR metadata via the repository helper (commands completed successfully).

Codex Task

@CySSoO CySSoO merged commit 8d1dc73 into prettyblock Mar 9, 2026
2 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant