mirror of
https://github.com/Ernous/TorrServerJellyfin.git
synced 2025-12-19 21:46:11 +05:00
refactor
This commit is contained in:
@@ -157,10 +157,11 @@ export default function AddDialog({
|
|||||||
posterSearch(title || parsedTitle, posterSearchLanguage)
|
posterSearch(title || parsedTitle, posterSearchLanguage)
|
||||||
setSkipDebounce(false)
|
setSkipDebounce(false)
|
||||||
} else if (!title) {
|
} else if (!title) {
|
||||||
|
delayedPosterSearch.cancel()
|
||||||
|
|
||||||
if (parsedTitle) {
|
if (parsedTitle) {
|
||||||
posterSearch(parsedTitle, posterSearchLanguage)
|
posterSearch(parsedTitle, posterSearchLanguage)
|
||||||
} else {
|
} else {
|
||||||
delayedPosterSearch.cancel()
|
|
||||||
!isUserInteractedWithPoster && removePoster()
|
!isUserInteractedWithPoster && removePoster()
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -200,6 +200,7 @@ export const PosterWrapper = styled.div`
|
|||||||
'suggestions';
|
'suggestions';
|
||||||
}
|
}
|
||||||
`
|
`
|
||||||
|
|
||||||
export const PosterSuggestions = styled.div`
|
export const PosterSuggestions = styled.div`
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-area: suggestions;
|
grid-area: suggestions;
|
||||||
@@ -216,6 +217,7 @@ export const PosterSuggestions = styled.div`
|
|||||||
grid-template-columns: repeat(4, max-content);
|
grid-template-columns: repeat(4, max-content);
|
||||||
}
|
}
|
||||||
`
|
`
|
||||||
|
|
||||||
export const PosterSuggestionsItem = styled.div`
|
export const PosterSuggestionsItem = styled.div`
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
width: 71px;
|
width: 71px;
|
||||||
|
|||||||
Reference in New Issue
Block a user