Skip to content

Commit

Permalink
feat(videodetail): fix responsiveness
Browse files Browse the repository at this point in the history
  • Loading branch information
royschut committed Jun 3, 2021
1 parent a3c109d commit bded9bf
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/components/Shelf/Shelf.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
@include responsive.tablet-only() {
margin: 0 variables.$base-spacing * 2;
}
margin: 12px 56px;
margin: 12px 0px;
color: var(--primary-color);
font-family: var(--body-alt-font-family);

Expand Down
3 changes: 2 additions & 1 deletion src/components/Video/Video.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
}
.info {
max-width: 450px;
min-height: 380px;
@include responsive.tablet-only() {
max-width: 350px;
}
Expand Down Expand Up @@ -117,7 +118,7 @@
border-radius: 100%;
}
.other {
margin: 50px 0px;
margin-top: 50px;
}
.playerContainer {
position: absolute;
Expand Down
2 changes: 1 addition & 1 deletion src/containers/Cinema/Cinema.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const Cinema: React.FC<Props> = ({ item, onPlay, onPause }: Props) => {
if (init) {
const player = getPlayer();
player.setup({ file });
player.on('ready', () => console.info('Player ready'));
player.on('ready', () => player.play());
player.on('play', () => onPlay());
player.on('pause', () => onPause());
setInit(false);
Expand Down
3 changes: 3 additions & 0 deletions src/screens/Home/Home.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,6 @@
overflow: visible !important;
}
}
.shelfContainer {
padding: 0px 56px;
}
2 changes: 1 addition & 1 deletion src/screens/Home/Home.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ const Home = (): JSX.Element => {
const onCardHover = (playlistItem: PlaylistItem) => updateBlurImage(playlistItem.image);

return (
<div key={key} style={style}>
<div key={key} style={style} className={styles.shelfContainer}>
<Shelf
key={contentItem.playlistId}
playlistId={contentItem.playlistId}
Expand Down

0 comments on commit bded9bf

Please sign in to comment.