Skip to content

Conversation

@CySSoO
Copy link
Contributor

@CySSoO CySSoO commented Jan 27, 2026

Motivation

  • Ensure the reassurance prettyblock keeps a multi-column grid when the desktop slider is enabled but the number of items does not require creating carousel slides, avoiding unintended single-column rendering.

Description

  • Updated views/templates/hook/prettyblocks/prettyblock_reassurance.tpl to introduce statesCount and expose slider_items_desktop and slider_items_mobile earlier for layout decisions.
  • Changed the reassuranceColumnClass condition to treat the desktop slider as a grid when statesCount <= sliderItemsDesktop, so column classes (e.g. 4 per row) are preserved instead of forcing slider-only styling.
  • Kept existing carousel rendering paths intact and limited the change to the grid vs slider class selection logic.

Testing

  • No automated tests were run for this change.

Codex Task

@CySSoO CySSoO merged commit 3cf00a8 into master Jan 27, 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.

2 participants