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)
|
||||
setSkipDebounce(false)
|
||||
} else if (!title) {
|
||||
delayedPosterSearch.cancel()
|
||||
|
||||
if (parsedTitle) {
|
||||
posterSearch(parsedTitle, posterSearchLanguage)
|
||||
} else {
|
||||
delayedPosterSearch.cancel()
|
||||
!isUserInteractedWithPoster && removePoster()
|
||||
}
|
||||
} else {
|
||||
|
||||
@@ -200,6 +200,7 @@ export const PosterWrapper = styled.div`
|
||||
'suggestions';
|
||||
}
|
||||
`
|
||||
|
||||
export const PosterSuggestions = styled.div`
|
||||
display: grid;
|
||||
grid-area: suggestions;
|
||||
@@ -216,6 +217,7 @@ export const PosterSuggestions = styled.div`
|
||||
grid-template-columns: repeat(4, max-content);
|
||||
}
|
||||
`
|
||||
|
||||
export const PosterSuggestionsItem = styled.div`
|
||||
cursor: pointer;
|
||||
width: 71px;
|
||||
|
||||
Reference in New Issue
Block a user