`;
}
@@ -143,6 +143,7 @@ function populateDirectorDetails(director, credits) {
const noImageText = document.createElement('h2');
noImageText.textContent = 'Image Not Available';
noImageText.style.textAlign = 'center';
+ noImageText.style.height = '800px';
document.querySelector('.director-left').appendChild(noImageText);
}
diff --git a/MovieVerse-Frontend/js/movie-details.js b/MovieVerse-Frontend/js/movie-details.js
index ce9195ad..0cfbf4c6 100644
--- a/MovieVerse-Frontend/js/movie-details.js
+++ b/MovieVerse-Frontend/js/movie-details.js
@@ -392,7 +392,7 @@ document.addEventListener('DOMContentLoaded', () => {
}
else {
document.getElementById('movie-details-container').innerHTML = `
-
+
Movie details not found.
`;
}
@@ -1001,6 +1001,7 @@ function populateMovieDetails(movie, imdbRating, rtRating, metascore, awards, ra
const noImageText = document.createElement('h2');
noImageText.textContent = 'Movie Image Not Available';
noImageText.style.textAlign = 'center';
+ noImageText.style.height = '800px';
document.querySelector('.movie-left').appendChild(noImageText);
}
diff --git a/MovieVerse-Frontend/js/search.js b/MovieVerse-Frontend/js/search.js
index 1cc8efbd..2ea8e1ff 100644
--- a/MovieVerse-Frontend/js/search.js
+++ b/MovieVerse-Frontend/js/search.js
@@ -214,12 +214,6 @@ function attachArrowKeyNavigation() {
case 'ArrowLeft':
currentIndex = (currentIndex - 1 + categories.length) % categories.length;
break;
- case 'ArrowUp':
- currentIndex = (currentIndex + 1) % categories.length;
- break;
- case 'ArrowDown':
- currentIndex = (currentIndex - 1 + categories.length) % categories.length;
- break;
default:
return;
}
@@ -332,6 +326,7 @@ function displayResults(results, category, searchTerm) {
if (results.length === 0) {
container.innerHTML = `
No results found for "${searchTerm}" in the ${capitalizedCategory} category. Please try again with a different query or look for it in another category.
`;
+ container.style.height = '800px';
return;
}
diff --git a/index.html b/index.html
index aa774b92..11fd792e 100644
--- a/index.html
+++ b/index.html
@@ -820,11 +820,11 @@
Timeless Classics: Tren
}
searchInput.addEventListener('keydown', function(e) {
- if (e.key === 'ArrowDown' || (e.key === 'Tab' && !e.shiftKey)) {
+ if (e.key === 'ArrowDown' || (e.key === 'Tab' && !e.shiftKey) || e.key === 'ArrowRight') {
e.preventDefault();
moveSelection('down');
}
- else if (e.key === 'ArrowUp' || (e.key === 'Tab' && e.shiftKey)) {
+ else if (e.key === 'ArrowUp' || (e.key === 'Tab' && e.shiftKey) || e.key === 'ArrowLeft') {
e.preventDefault();
moveSelection('up');
}