Skip to content

Commit

Permalink
Update mediaSlider.js
Browse files Browse the repository at this point in the history
  • Loading branch information
ledangtrung committed Dec 2, 2024
1 parent a708cf1 commit 6d31d5e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion js/mediaSlider.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,8 @@ class MediaSlider {

createSlider() {
if (this.mediaUrls.length === 0) {
document.getElementById(this.containerId).innerHTML = '<div><i class="bi bi-file-earmark-x" title="Not available"></i></div>';
document.getElementById(this.containerId).innerHTML = '<div style="display: flex; justify-content: center; align-items: center; height: 100vh; font-weight: bold;">
📷 No media available 🎬</div>';
return; // Exit if there are no media URLs
}

Expand Down

0 comments on commit 6d31d5e

Please sign in to comment.