File tree Expand file tree Collapse file tree 1 file changed +15
-5
lines changed
src/LinkDotNet.Blog.Web/Features/Components Expand file tree Collapse file tree 1 file changed +15
-5
lines changed Original file line number Diff line number Diff line change 1
1
@using Microsoft .AspNetCore .StaticFiles
2
2
@if (string .IsNullOrEmpty (PreviewImageUrlFallback ))
3
3
{
4
- <img class =" preview-img" src =" @PreviewImageUrl" alt =" Preview image blogpost" loading =" @LazyLoadTag" decoding =" @DecodingTag" />
4
+ <img class =" position-absolute top-0 start-0 w-100 h-100"
5
+ style =" object-fit : cover ;"
6
+ src =" @PreviewImageUrl"
7
+ alt =" Preview image blogpost"
8
+ loading =" @LazyLoadTag"
9
+ decoding =" @DecodingTag" />
5
10
}
6
11
else
7
12
{
8
- <picture >
9
- <source srcset =" @PreviewImageUrl" type =" @GetMimeType()" />
10
- <img class =" preview-img" src =" @PreviewImageUrlFallback" alt =" Preview image blogpost" loading =" @LazyLoadTag" decoding =" @DecodingTag" />
11
- </picture >
13
+ <picture >
14
+ <source srcset =" @PreviewImageUrl" type =" @GetMimeType()" />
15
+ <img class =" position-absolute top-0 start-0 w-100 h-100"
16
+ style =" object-fit : cover ;"
17
+ src =" @PreviewImageUrlFallback"
18
+ alt =" Preview image blogpost"
19
+ loading =" @LazyLoadTag"
20
+ decoding =" @DecodingTag" />
21
+ </picture >
12
22
}
13
23
14
24
@code {
You can’t perform that action at this time.
0 commit comments