|
|
|
@ -78,10 +78,10 @@
@@ -78,10 +78,10 @@
|
|
|
|
|
{ |
|
|
|
|
<div style="display: flex; flex-direction: column; position: relative"> |
|
|
|
|
<MudHidden Invert="true" Breakpoint="Breakpoint.SmAndDown"> |
|
|
|
|
<MudImage Src="@GetPosterUrl(episode.Poster)" Style="max-height: 220px; max-width: 265px; margin-left: auto; margin-right: auto;"/> |
|
|
|
|
<MudImage Src="@GetThumbnailUrl(episode.Poster)" Style="max-height: 220px; max-width: 265px; margin-left: auto; margin-right: auto;"/> |
|
|
|
|
</MudHidden> |
|
|
|
|
<MudHidden Invert="true" Breakpoint="Breakpoint.MdAndUp"> |
|
|
|
|
<MudImage Src="@GetPosterUrl(episode.Poster)" Style="max-height: 220px; max-width: 392px; margin-left: auto; margin-right: auto;"/> |
|
|
|
|
<MudImage Src="@GetThumbnailUrl(episode.Poster)" Style="max-height: 220px; max-width: 392px; margin-left: auto; margin-right: auto;"/> |
|
|
|
|
</MudHidden> |
|
|
|
|
@if (episode.State == MediaItemState.FileNotFound) |
|
|
|
|
{ |
|
|
|
@ -333,4 +333,9 @@
@@ -333,4 +333,9 @@
|
|
|
|
|
return poster.StartsWith("http://") || poster.StartsWith("https://") ? poster : $"artwork/posters/{poster}"; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private static string GetThumbnailUrl(string poster) |
|
|
|
|
{ |
|
|
|
|
return poster.StartsWith("http://") || poster.StartsWith("https://") ? poster : $"artwork/thumbnails/{poster}"; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |