Browse Source

Video player ending screen fixes (#1181)

* fix issue with offering the same video

* fix breaking words in video title
Bartosz Dryl 3 years ago
parent
commit
56b0cdd0d4

+ 3 - 1
src/shared/components/VideoPlayer/VideoOverlays/EndingOverlay.style.ts

@@ -48,6 +48,7 @@ export const InnerContainer = styled.div<InnerContainerProps>`
 `
 
 export const VideoInfo = styled.div`
+  overflow: hidden;
   margin: auto;
   width: 100%;
   display: flex;
@@ -68,8 +69,9 @@ export const Heading = styled(Text)`
   margin-top: ${sizes(4)};
   flex-shrink: 0;
   max-width: 560px;
-  word-break: break-all;
   width: 100%;
+  text-overflow: ellipsis;
+  overflow: hidden;
   text-align: center;
 `
 

+ 1 - 0
src/views/viewer/VideoView/VideoView.tsx

@@ -114,6 +114,7 @@ export const VideoView: React.FC = () => {
           {video ? (
             <VideoPlayer
               channelId={video.channel.id}
+              videoId={video.id}
               autoplay
               src={mediaUrl}
               fill