Skip to content

Commit

Permalink
Update: Enhanced loading times (#192)
Browse files Browse the repository at this point in the history
  • Loading branch information
hoangsonww committed May 24, 2024
1 parent 9bb4f22 commit 3a0fae0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion MovieVerse-Frontend/js/movie-details.js
Original file line number Diff line number Diff line change
Expand Up @@ -851,8 +851,11 @@ function getYouTubeVideoId(url) {

function positionTrailerButton() {
showSpinner();
if (!trailerButton)
if (!trailerButton) {
document.getElementById('movie-description').style.marginTop = '-20px';
return;
}
document.getElementById('movie-description').style.marginTop = '-60px';

if (window.innerWidth <= 900) {
const movieDescription = document.getElementById('movie-description');
Expand Down

0 comments on commit 3a0fae0

Please sign in to comment.