1
0
Fork 0
mirror of https://github.com/sussy-code/smov.git synced 2024-12-20 14:37:43 +01:00

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 }) {
return (
<div>
<div class="episodeSelector">
<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}/>
</div>

View file

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

View file

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