Join the Webstudio community

Home
Members
ashishdhngr
a
ashishdhngr
Offline, last seen 3 weeks ago
Joined December 13, 2024
I've been using the lightgallery.js library to add a lightbox/gallery to my site. Using the HTML block, I embedded the lightgallery.js style sheet and script. The js and gallery initiates and works, however, the css is a bit wonky. Top toolbar and prev & next buttons are rendered out of place or incorrectly.

After troubleshooting with no luck, I copied the html/css of the webstudio page and paste it into a replit, added the lightgallery script and style sheet, and it worked there!

Webstudio builder view link -
https://p-c4b0aacc-ba6e-4cbb-998d-5dde2361f039.apps.webstudio.is/?authToken=71b4fac9-f738-4203-9f92-b37620395464&mode=preview

Replit code -
https://replit.com/@ashish102/GlumTerribleStructure
21 comments
O
a
H
The issue seems to only affect browsers using the safari/webkit engine -Safari on Mac, Safari/Chrome on IOS

I have a container with a looping carousel which extends the full width of the page. On initial load on a mobile/tablet, the page renders exactly as desired - no horizontal overflow issues.

However, when toggling the mobile menu (using the Radix sheet component) on and off, the horizontal overflow issue shows up.

While troubleshooting the issue, I lowered the opacity of the sheet overlay only to find out the issue disappears when the sheet is active, and returns when the sheet is closed.

Here is the link to the website - https://imp-rentals-6vgj1.wstd.io/
Here is the link to the builder - https://apps.webstudio.is/builder/c4b0aacc-ba6e-4cbb-998d-5dde2361f039?authToken=39ec4cd9-bd6a-464b-a2e5-ad6a8bb6564d

(The parent container of the carousel does have a 5% horizontal padding, so I'm assuming this combined with the 100vw on the carousel is part of the issue, however, I'm not sure why this is a non issue on chrome based browsers....)
4 comments
O
Attempting to use a collections item within the tabs component has unexpected behavior. Housing the "Tab Content" within the Collection component seems to treat the Collection component itself as the Tab Content item.

What is the recommended method to integrate the CMS with Radix tabs?
1 comment
B