Skip to content

Commit 0a368ea

Browse files
committed
Update: Enhanced app functionalities (#196)
1 parent 6ee9f9d commit 0a368ea

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

MovieVerse-Frontend/css/style.css

+3
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,9 @@ body {
9090
.actor-name, .actor-role {
9191
font-size: 12px;
9292
margin: 0;
93+
word-break: break-word;
94+
white-space: normal;
95+
text-align: center;
9396
}
9497

9598
.director-section {

MovieVerse-Frontend/js/movie-details.js

+2-8
Original file line numberDiff line numberDiff line change
@@ -1133,8 +1133,7 @@ async function populateMovieDetails(movie, imdbRating, rtRating, metascore, awar
11331133
if (actor.profile_path) {
11341134
actorImage.src = IMGPATH + actor.profile_path;
11351135
actorImage.alt = `${actor.name} Profile Picture`;
1136-
}
1137-
else {
1136+
} else {
11381137
actorImage.alt = 'Image Not Available';
11391138
actorImage.src = '../../images/user-default.png';
11401139
actorImage.style.filter = 'grayscale(100%)';
@@ -1149,16 +1148,12 @@ async function populateMovieDetails(movie, imdbRating, rtRating, metascore, awar
11491148
const actorName = document.createElement('p');
11501149
actorName.classList.add('actor-name');
11511150
actorName.textContent = actor.name;
1152-
actorName.style.wordWrap = 'break-word';
11531151
actorDetails.appendChild(actorName);
11541152

11551153
const character = actor.character ? ` (${actor.character})` : '';
11561154
const actorRole = document.createElement('p');
11571155
actorRole.classList.add('actor-role');
1158-
actorRole.style.fontSize = '11px';
11591156
actorRole.textContent = character;
1160-
actorRole.style.fontStyle = 'italic';
1161-
actorRole.style.wordWrap = 'break-word';
11621157
actorDetails.appendChild(actorRole);
11631158

11641159
castItem.appendChild(actorDetails);
@@ -1167,8 +1162,7 @@ async function populateMovieDetails(movie, imdbRating, rtRating, metascore, awar
11671162
});
11681163

11691164
castSection.appendChild(castList);
1170-
}
1171-
else {
1165+
} else {
11721166
castSection.appendChild(document.createTextNode('None available.'));
11731167
}
11741168

0 commit comments

Comments
 (0)