Skip to content

Fix: account for gap in column block style width calculations#150

Open
aadil42 wants to merge 1 commit into
rtCamp:developfrom
aadil42:bug/147-column-styles-gap-fix
Open

Fix: account for gap in column block style width calculations#150
aadil42 wants to merge 1 commit into
rtCamp:developfrom
aadil42:bug/147-column-styles-gap-fix

Conversation

@aadil42
Copy link
Copy Markdown

@aadil42 aadil42 commented Jun 4, 2026

Summary

The column block styles (2, 3, 4 columns) were using hardcoded percentage widths that didn't account for the slide gap, causing slides to overflow the carousel container when a gap was set.

Describe the change and why it is needed.

Type of change

  • Bug fix
  • New feature
  • Enhancement/refactor
  • Documentation update
  • Test update
  • Build/CI/tooling

Related issue(s)

Closes #147

Closes #
Relates to # (if applicable)

What changed

Fixed slide width calculation in column styles to account for the configured gap value

Breaking changes

Does this introduce a breaking change? If yes, describe the impact and migration path below.

  • Yes — migration path:
  • No

Testing

Describe how this was tested.

  • Unit tests
  • Manual testing
  • Cross-browser testing (if UI changes)

Test details:

Screenshots / recordings

If applicable, add screenshots or short recordings.

compressed.Screen.Recording.2026-06-04.at.5.mp4
image

Checklist

  • I have self-reviewed this PR
  • I have added/updated tests where needed
  • I have updated docs where needed
  • I have checked for breaking changes

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.

[Bug]: Block styles: 2-column, 3-column, 4-column do not take into account the gap.

1 participant