Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TP-1945: Show video button in mobile version #1954

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
File renamed without changes.
2 changes: 1 addition & 1 deletion docs/iframe.html
Original file line number Diff line number Diff line change
Expand Up @@ -345,4 +345,4 @@



window['STORIES'] = [];</script><script src="runtime~main.041b8ff6.iframe.bundle.js"></script><script src="vendors~main.e6fdca25.iframe.bundle.js"></script><script src="main.0e2f2639.iframe.bundle.js"></script></body></html>
window['STORIES'] = [];</script><script src="runtime~main.9390b27b.iframe.bundle.js"></script><script src="vendors~main.2eb898cf.iframe.bundle.js"></script><script src="main.a0d84c4a.iframe.bundle.js"></script></body></html>
3 changes: 0 additions & 3 deletions docs/main.0e2f2639.iframe.bundle.js

This file was deleted.

1 change: 0 additions & 1 deletion docs/main.0e2f2639.iframe.bundle.js.map

This file was deleted.

3 changes: 3 additions & 0 deletions docs/main.a0d84c4a.iframe.bundle.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions docs/main.a0d84c4a.iframe.bundle.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions docs/vendors~main.2eb898cf.iframe.bundle.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion docs/vendors~main.e6fdca25.iframe.bundle.js.map

This file was deleted.

15 changes: 9 additions & 6 deletions packages/carousel/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ export const Carousel = ({
const mainImageSkeletonRef = useRef()
const mainImageWidthSkeleton = mainImageSkeletonRef.current?.clientWidth
const allPictures = [...imgWithCover, ...bluePrintsWithCover]
const showOtherButtonsGalleryMobile = containerWidth > 530

if (video.length > 0) {
tabContainers.push('Videos')
Expand Down Expand Up @@ -231,18 +232,20 @@ export const Carousel = ({
setIndex={setIndex}
setURLOpenFullscreen={setURLOpenFullscreen}
/>
{!otherButton && containerWidth > 530 && (
{!otherButton && containerWidth > 300 && (
<Box
__css={{ bottom: '6px' }}
className="buttonsMainImageSlider"
>
<ButtonsMainImage
video={video}
video360={video360}
images={images}
imgWithCover={imgWithCover}
planos={planos}
frontCoverBlueprints={frontCoverBlueprints}
video360={showOtherButtonsGalleryMobile && video360}
images={showOtherButtonsGalleryMobile && images}
imgWithCover={showOtherButtonsGalleryMobile && imgWithCover}
planos={showOtherButtonsGalleryMobile && planos}
frontCoverBlueprints={
showOtherButtonsGalleryMobile && frontCoverBlueprints
}
setTabSelected={setTabSelected}
setIndex={setIndex}
setFullscreen={setFullscreen}
Expand Down
Loading