diff --git a/.circleci/config.yml b/.circleci/config.yml index 6af31f2fd4..2b869b6ada 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -358,7 +358,7 @@ workflows: filters: branches: only: - - free + - PROD-4251 # This is alternate dev env for parallel testing - "build-qa": context : org-global diff --git a/src/shared/components/GUIKit/PhotoVideoItem/index.jsx b/src/shared/components/GUIKit/PhotoVideoItem/index.jsx index 6a8344c05d..73597fd022 100644 --- a/src/shared/components/GUIKit/PhotoVideoItem/index.jsx +++ b/src/shared/components/GUIKit/PhotoVideoItem/index.jsx @@ -98,7 +98,13 @@ function PhotoVideoItem({ })} type="button" > - {imageUrl ? () : null} + {imageUrl && !isThisVideo ? () : null} + {isThisVideo && ( + + )} {isThisVideo ? () : null} ); diff --git a/src/shared/components/GUIKit/PhotoVideoItem/styles.scss b/src/shared/components/GUIKit/PhotoVideoItem/styles.scss index 2ab0380c89..9d6deb7b20 100644 --- a/src/shared/components/GUIKit/PhotoVideoItem/styles.scss +++ b/src/shared/components/GUIKit/PhotoVideoItem/styles.scss @@ -23,6 +23,10 @@ object-fit: cover; } +.video-container { + max-width: 100%; +} + .btn-play { position: absolute; top: calc(50% - 12px); diff --git a/src/shared/containers/timeline-wall/modal-photo-viewer/index.jsx b/src/shared/containers/timeline-wall/modal-photo-viewer/index.jsx index 70392afb98..fb4bb4cf67 100644 --- a/src/shared/containers/timeline-wall/modal-photo-viewer/index.jsx +++ b/src/shared/containers/timeline-wall/modal-photo-viewer/index.jsx @@ -72,8 +72,8 @@ function ModalPhotoViewer({ onClose, selectedPhoto, photos }) { selected: photo.id === localSelectedPhoto, })} url={photo.previewUrl || photo.url} - videoThumnailUrl={photo.videoThumnailUrl} - isUrlPhoto={!photo.videoThumnailUrl} + videoThumnailUrl={photo.previewUrl || photo.url} + isUrlPhoto={!photo.isVideo} onClick={() => setLocalSelectedPhoto(photo.id)} key={uuidv4()} /> diff --git a/src/shared/containers/timeline-wall/pending-approvals/approval-item/index.jsx b/src/shared/containers/timeline-wall/pending-approvals/approval-item/index.jsx index e982cba5b9..ae613a439b 100644 --- a/src/shared/containers/timeline-wall/pending-approvals/approval-item/index.jsx +++ b/src/shared/containers/timeline-wall/pending-approvals/approval-item/index.jsx @@ -74,8 +74,8 @@ function ApprovalItem({ key={photo.id} styleName="photo-item" url={photo.previewUrl || photo.url} - videoThumnailUrl={photo.videoThumnailUrl} - isUrlPhoto={!photo.videoThumnailUrl} + videoThumnailUrl={photo.previewUrl || photo.url} + isUrlPhoto={!photo.isVideo} onClick={() => { setShowModalPhoto(true); setSelectedPhoto(photo.id); diff --git a/src/shared/containers/timeline-wall/photo-items-mobile/index.jsx b/src/shared/containers/timeline-wall/photo-items-mobile/index.jsx index e194772f37..205fde2805 100644 --- a/src/shared/containers/timeline-wall/photo-items-mobile/index.jsx +++ b/src/shared/containers/timeline-wall/photo-items-mobile/index.jsx @@ -33,10 +33,13 @@ function PhotoItemsMobile({ photos, className }) { role="button" tabIndex={0} > - {selectedPhotoObject && !selectedPhotoObject.videoThumnailUrl ? (main) : null} - {selectedPhotoObject && !!selectedPhotoObject.videoThumnailUrl ? ( + {selectedPhotoObject && !selectedPhotoObject.isVideo ? (main) : null} + {selectedPhotoObject && selectedPhotoObject.isVideo ? ( - main + ) : null} diff --git a/src/shared/containers/timeline-wall/photo-items-mobile/styles.scss b/src/shared/containers/timeline-wall/photo-items-mobile/styles.scss index 4e019fb13a..c055cd6782 100644 --- a/src/shared/containers/timeline-wall/photo-items-mobile/styles.scss +++ b/src/shared/containers/timeline-wall/photo-items-mobile/styles.scss @@ -25,6 +25,10 @@ top: calc(50% - 25px); } + .video-container { + max-width: 100%; + } + .btn-left, .btn-right { position: absolute; diff --git a/src/shared/containers/timeline-wall/timeline-events/events/event-item/index.jsx b/src/shared/containers/timeline-wall/timeline-events/events/event-item/index.jsx index cd77aedc18..4e9f4bfd9f 100644 --- a/src/shared/containers/timeline-wall/timeline-events/events/event-item/index.jsx +++ b/src/shared/containers/timeline-wall/timeline-events/events/event-item/index.jsx @@ -69,8 +69,8 @@ function EventItem({ { setShowModalPhoto(true);