[frontend/components] Use IsNullOrWhiteSpace for Attachment Viewer
This commit is contained in:
parent
465d0b4c8b
commit
a572569066
1 changed files with 1 additions and 1 deletions
|
@ -23,7 +23,7 @@
|
|||
{
|
||||
<div class="container" @ref="@Ref">
|
||||
<img class="attachment" src="@element.Url" alt="@element.AltText" fetchpriority="low"/>
|
||||
@if (element.AltText is not null)
|
||||
@if (!string.IsNullOrWhiteSpace(element.AltText))
|
||||
{
|
||||
<div class="alt-text">@element.AltText</div>
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue