Carousel-container.less Margin not properly set for RTL

Fethi.dz

Well-known member
Affected version
2.3.6
When switching to RTL language the Carousel-container.less Margin is not properly set.

Before the fix:
1744917909911.webp

After the fix:
1744917974754.webp


Appreciate it to add to the core the rtl margin fixing code carousel.less

Less:
.carousel-container
    {
        flex: 0 0 auto;
        width: calc((100% - (var(--f-carousel-spacing) * (var(--xf-slidesPerPage) - 1))) / var(--xf-slidesPerPage));
        margin: 0 var(--f-carousel-spacing) 0 0;
        
        /* Fix for RTL */
        & when(@rtl)
        {
            margin: 0 0 0 var(--f-carousel-spacing);
        }
    }
 
Back
Top Bottom