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

fixing video play button size on magnifying and expand mode #1183

Merged
merged 3 commits into from
Feb 14, 2024

Conversation

Galpittel
Copy link
Collaborator

No description provided.

@Galpittel Galpittel requested a review from liatv February 11, 2024 13:19
@@ -81,6 +80,8 @@ export default function MediaItem<T extends Record<string, any>>(props: MediaPro
return true;
} else if (clickAction === GALLERY_CONSTS[optionsMap.behaviourParams.item.clickAction].LINK && !hasLink) {
return true;
} else if (clickAction === 'ACTION' || clickAction === 'MAGNIFY') {
Copy link
Contributor

Choose a reason for hiding this comment

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

'ACTION' &&'MAGNIFY' - should be consts

liatv

This comment was marked as duplicate.

Copy link
Contributor

@liatv liatv left a comment

Choose a reason for hiding this comment

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

@IzaacAyelin @Galpittel
But aren't we missing the thumbnail arrow? Doesn't seems to be logical

@@ -45,7 +45,7 @@ export type MediaImplementationProps<T = {}> = T &

const getPlayButtonComponentByItemType = (type: string) => {
if (type === 'video') {
return <GalleryUI type={'videoPlayButton'} size={12} />;
return <GalleryUI type={'videoPlayButton'} size={60} />;
Copy link
Contributor

Choose a reason for hiding this comment

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

we want to display size 12 for thumbnail

} else if (clickAction === GALLERY_CONSTS[optionsMap.behaviourParams.item.clickAction].NOTHING) {
} else if (
clickAction === GALLERY_CONSTS[optionsMap.behaviourParams.item.clickAction].NOTHING ||
clickAction === GALLERY_CONSTS[optionsMap.behaviourParams.item.clickAction].MAGNIFY
Copy link
Contributor

Choose a reason for hiding this comment

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

if click action is NOTHING than why do we want to have the full video render? it's that means it's thumbnail?

@Galpittel Galpittel merged commit 49faefc into master Feb 14, 2024
7 checks passed
@Galpittel Galpittel deleted the fix-video-play-button branch February 14, 2024 13:33
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.

2 participants