Skip to content

Commit

Permalink
fix: don't display banner image if it doesn't exist
Browse files Browse the repository at this point in the history
  • Loading branch information
Thundernerd committed Feb 3, 2024
1 parent 325a0e8 commit dccdaf2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Mangarr.Stack/Pages/Manga/Item/ContentHeader.razor
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
<div id="manga-header" class="position-relative text-white">
<div id="manga-header-background-container" class="w-100 position-relative">
<img id="manga-header-background" class="w-100 h-100 object-fit-cover" src="@_metadata!.BannerUrl" alt="banner">
@if (!string.IsNullOrEmpty(_metadata!.BannerUrl))
{
<img id="manga-header-background" class="w-100 h-100 object-fit-cover" src="@_metadata!.BannerUrl" alt="banner">
}
<div id="manga-header-background-cover" class="w-100 h-100 position-absolute top-0 start-0 bg-dark opacity-75"></div>
</div>
<div id="manga-header-content-wrapper" class="position-absolute top-0 start-0 w-100 h-100">
Expand Down

0 comments on commit dccdaf2

Please sign in to comment.