mirror of
https://github.com/sussy-code/smov.git
synced 2024-12-29 16:07:40 +01:00
style(movie): improve margins
This commit is contained in:
parent
1df4db723b
commit
85dda8c13f
4 changed files with 9 additions and 3 deletions
|
@ -0,0 +1,3 @@
|
|||
.episodeSelector {
|
||||
margin-top: 20px;
|
||||
}
|
|
@ -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>
|
||||
|
|
|
@ -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(),
|
||||
}
|
||||
});
|
||||
|
|
|
@ -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;
|
||||
}
|
Loading…
Reference in a new issue