style(movie): improve margins

This commit is contained in:
Jip Fr 2021-07-15 18:12:49 +02:00
parent 1df4db723b
commit 85dda8c13f
4 changed files with 9 additions and 3 deletions

View File

@ -0,0 +1,3 @@
.episodeSelector {
margin-top: 20px;
}

View File

@ -5,7 +5,7 @@ import './EpisodeSelector.css'
export function EpisodeSelector({ setSeason, setEpisode, seasons, episodes, currentSeason, currentEpisode }) { export function EpisodeSelector({ setSeason, setEpisode, seasons, episodes, currentSeason, currentEpisode }) {
return ( return (
<div> <div class="episodeSelector">
<TypeSelector setType={setSeason} choices={seasons.map(v=>({ value: v.toString(), label: `Season ${v}`}))} selected={currentSeason}/><br></br> <TypeSelector setType={setSeason} choices={seasons.map(v=>({ value: v.toString(), label: `Season ${v}`}))} selected={currentSeason}/><br></br>
<NumberSelector setType={(e) => setEpisode({episode: e, season: currentSeason})} choices={episodes.map(v=>({ value: v.toString(), label: v}))} selected={currentEpisode.season === currentSeason?currentEpisode.episode:null}/> <NumberSelector setType={(e) => setEpisode({episode: e, season: currentSeason})} choices={episodes.map(v=>({ value: v.toString(), label: v}))} selected={currentEpisode.season === currentSeason?currentEpisode.episode:null}/>
</div> </div>

View File

@ -119,8 +119,8 @@ async function findContent(searchTerm, type) {
const results = nodes.map(node => { const results = nodes.map(node => {
return { return {
type, type,
title: node.querySelector('h6 a').innerText, title: node.querySelector('h6 a').innerText.trim(),
year: node.querySelector('.year').innerText, year: node.querySelector('.year').innerText.trim(),
slug: node.querySelector('a').href.split('/').pop(), slug: node.querySelector('a').href.split('/').pop(),
} }
}); });

View File

@ -1,3 +1,6 @@
.showType-show .title-size-big { .showType-show .title-size-big {
margin-bottom: 10px; margin-bottom: 10px;
} }
.showType-show .title-size-small, .showType-movie .title-size-big {
margin-bottom: 30px;
}