@@ -1133,8 +1133,7 @@ async function populateMovieDetails(movie, imdbRating, rtRating, metascore, awar
1133
1133
if ( actor . profile_path ) {
1134
1134
actorImage . src = IMGPATH + actor . profile_path ;
1135
1135
actorImage . alt = `${ actor . name } Profile Picture` ;
1136
- }
1137
- else {
1136
+ } else {
1138
1137
actorImage . alt = 'Image Not Available' ;
1139
1138
actorImage . src = '../../images/user-default.png' ;
1140
1139
actorImage . style . filter = 'grayscale(100%)' ;
@@ -1149,16 +1148,12 @@ async function populateMovieDetails(movie, imdbRating, rtRating, metascore, awar
1149
1148
const actorName = document . createElement ( 'p' ) ;
1150
1149
actorName . classList . add ( 'actor-name' ) ;
1151
1150
actorName . textContent = actor . name ;
1152
- actorName . style . wordWrap = 'break-word' ;
1153
1151
actorDetails . appendChild ( actorName ) ;
1154
1152
1155
1153
const character = actor . character ? ` (${ actor . character } )` : '' ;
1156
1154
const actorRole = document . createElement ( 'p' ) ;
1157
1155
actorRole . classList . add ( 'actor-role' ) ;
1158
- actorRole . style . fontSize = '11px' ;
1159
1156
actorRole . textContent = character ;
1160
- actorRole . style . fontStyle = 'italic' ;
1161
- actorRole . style . wordWrap = 'break-word' ;
1162
1157
actorDetails . appendChild ( actorRole ) ;
1163
1158
1164
1159
castItem . appendChild ( actorDetails ) ;
@@ -1167,8 +1162,7 @@ async function populateMovieDetails(movie, imdbRating, rtRating, metascore, awar
1167
1162
} ) ;
1168
1163
1169
1164
castSection . appendChild ( castList ) ;
1170
- }
1171
- else {
1165
+ } else {
1172
1166
castSection . appendChild ( document . createTextNode ( 'None available.' ) ) ;
1173
1167
}
1174
1168
0 commit comments