[frontend/components] Label files that are the user's avatar or banner

This commit is contained in:
pancakes 2024-12-23 00:21:47 +10:00 committed by Laura Hausmann
parent b6047c9dc1
commit d3ee46634a
No known key found for this signature in database
GPG key ID: D044E84C5BE01605

View file

@ -13,6 +13,14 @@
{
<div @ref="FileButton" class="drive-entry" @onclick="SelectFile" @onclick:stopPropagation="true">
<div class="labels">
@if (File.IsAvatar)
{
<Icon Name="Icons.UserCircle" title="@Loc["Avatar"]"/>
}
@if (File.IsBanner)
{
<Icon Name="Icons.Image" title="@Loc["Banner"]"/>
}
@if (File.Description != null)
{
<Icon Name="Icons.ClosedCaptioning" title="@File.Description"/>