Skip to content

[MOOSE-334] FE: Carousel Update Mobile Image Ratio#360

Open
LayaTaal wants to merge 4 commits into
mainfrom
feature/MOOSE-334/carousel-image-aspect-ratio
Open

[MOOSE-334] FE: Carousel Update Mobile Image Ratio#360
LayaTaal wants to merge 4 commits into
mainfrom
feature/MOOSE-334/carousel-image-aspect-ratio

Conversation

@LayaTaal
Copy link
Copy Markdown
Contributor

@LayaTaal LayaTaal commented May 26, 2026

What does this do/fix?

Ports Swiper.js carousel fixes from NHC PR #34 into ModernPress.

  • Sets .swiper-wrapper and .swiper-slide to height: auto, fixing image cropping when slides have mixed aspect ratios
  • Adds --swiper-navigation-border-size and --swiper-navigation-hover-border-size CSS variables to replace hardcoded border widths
  • Updates the swiper-navigation-hover-focus mixin to use the new border-size variable

QA

Links to relevant issues

Screenshots/video:

Pull request checklist

  • I've added a changelog entry for these changes.
  • I've linked to a relevant Jira issue.
  • I've captured a screenshot or screencast of the changes and linked it above.

Set swiper-wrapper and swiper-slide to height: auto to prevent image cropping
when slides have mixed aspect ratios. Also introduce --swiper-navigation-border-size
and --swiper-navigation-hover-border-size variables to replace hardcoded border widths.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@LayaTaal LayaTaal self-assigned this May 26, 2026
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@LayaTaal LayaTaal marked this pull request as ready for review May 26, 2026 01:55
@LayaTaal LayaTaal requested a review from GeoffDusome May 26, 2026 01:56
Copy link
Copy Markdown
Contributor

@GeoffDusome GeoffDusome left a comment

Choose a reason for hiding this comment

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

Thanks Jason!

@LayaTaal LayaTaal added Launch Environment Deploys to dokku In QA Waiting on QA labels May 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

In QA Waiting on QA Launch Environment Deploys to dokku

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants