Fixed voice work supported language search. Include supported languages and original circle in the search result item. Several UI style updates.
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
@using JSMR.UI.Blazor.Enums
|
||||
|
||||
<div class="@GetIconClasses()"></div>
|
||||
<div class="@GetIconClasses()" style="@GetStyle()"></div>
|
||||
|
||||
@code {
|
||||
[Parameter]
|
||||
@@ -15,20 +15,33 @@
|
||||
[Parameter]
|
||||
public ColorVarient Color { get; set; }
|
||||
|
||||
[Parameter]
|
||||
public bool UseCurrentColor { get; set; }
|
||||
|
||||
private string GetIconClasses()
|
||||
{
|
||||
string graphic = Varient == IconVarient.None
|
||||
? Graphic.ToString().ToLower()
|
||||
: $"{Graphic.ToString().ToLower()}-{Varient.ToString().ToLower()}";
|
||||
|
||||
|
||||
List<string> classNames =
|
||||
[
|
||||
$"j-icon",
|
||||
$"j-icon-{graphic}",
|
||||
$"size-{Size.ToString().ToLower()}",
|
||||
$"background-color-{Color.ToString().ToLower()}"
|
||||
//$"background-color-{Color.ToString().ToLower()}"
|
||||
];
|
||||
|
||||
if (!UseCurrentColor)
|
||||
{
|
||||
classNames.Add($"background-color-{Color.ToString().ToLower()}");
|
||||
}
|
||||
|
||||
return string.Join(" ", classNames);
|
||||
}
|
||||
|
||||
private string? GetStyle()
|
||||
{
|
||||
return UseCurrentColor ? "background-color: currentColor;" : null;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user