- @if (!string.IsNullOrEmpty(Text))
- {
-
- }
+
diff --git a/src/GameIdeas/Client/GameIdeas.BlazorApp/Shared/Components/Search/SearchInput.razor.cs b/src/GameIdeas/Client/GameIdeas.BlazorApp/Shared/Components/Search/SearchInput.razor.cs
index 755f951..5b8ddfd 100644
--- a/src/GameIdeas/Client/GameIdeas.BlazorApp/Shared/Components/Search/SearchInput.razor.cs
+++ b/src/GameIdeas/Client/GameIdeas.BlazorApp/Shared/Components/Search/SearchInput.razor.cs
@@ -1,3 +1,4 @@
+using GameIdeas.Shared.Constants;
using Microsoft.AspNetCore.Components;
namespace GameIdeas.BlazorApp.Shared.Components.Search;
@@ -13,6 +14,7 @@ public partial class SearchInput
[Parameter] public SearchInputIcon Icon { get; set; }
private ElementReference InputText;
+ private readonly MarkupString ClearIcon = new(Icons.Search.Clear);
protected override void OnInitialized()
{
@@ -45,4 +47,14 @@ public partial class SearchInput
{
await FocusIn.InvokeAsync();
}
+
+ private MarkupString GetSearchIcon()
+ {
+ return Icon switch
+ {
+ SearchInputIcon.Dropdown => new MarkupString(Icons.Search.Triangle),
+ SearchInputIcon.Search => new MarkupString(Icons.Search.Glass),
+ _ => new MarkupString()
+ };
+ }
}
\ No newline at end of file
diff --git a/src/GameIdeas/Client/GameIdeas.BlazorApp/Shared/Components/Search/SearchInput.razor.css b/src/GameIdeas/Client/GameIdeas.BlazorApp/Shared/Components/Search/SearchInput.razor.css
index eedab03..2b6eddc 100644
--- a/src/GameIdeas/Client/GameIdeas.BlazorApp/Shared/Components/Search/SearchInput.razor.css
+++ b/src/GameIdeas/Client/GameIdeas.BlazorApp/Shared/Components/Search/SearchInput.razor.css
@@ -9,8 +9,8 @@
background: var(--input-primary);
overflow: hidden;
align-items: center;
- width: 140px;
z-index: var(--index-component);
+ justify-content: space-between;
}
::deep .search-field {
@@ -34,7 +34,7 @@
cursor: pointer;
}
- .clear-icon svg {
+ ::deep .clear-icon svg {
fill: var(--white);
}
@@ -49,11 +49,11 @@
cursor: pointer;
}
- .search-icon svg {
- fill: var(--white);
- }
+::deep .search-icon svg {
+ fill: var(--white);
+}
- .search-icon.dropdown svg {
- fill: var(--violet);
- transform: scale(.8, .5);
- }
+::deep .search-icon.dropdown svg {
+ fill: var(--violet);
+ transform: scale(.8, .5);
+}
diff --git a/src/GameIdeas/Client/GameIdeas.BlazorApp/Shared/Components/Select/Components/SelectListElement.razor.cs b/src/GameIdeas/Client/GameIdeas.BlazorApp/Shared/Components/Select/Components/SelectListElement.razor.cs
index 917c9a6..d434875 100644
--- a/src/GameIdeas/Client/GameIdeas.BlazorApp/Shared/Components/Select/Components/SelectListElement.razor.cs
+++ b/src/GameIdeas/Client/GameIdeas.BlazorApp/Shared/Components/Select/Components/SelectListElement.razor.cs
@@ -10,13 +10,6 @@ public partial class SelectListElement
[Parameter] public SelectListTheme Theme { get; set; }
private async Task HandleItemClicked()
{
- if (Value == null)
- {
- return;
- }
-
- Value.IsSelected = true;
- StateHasChanged();
await ValueChanged.InvokeAsync(Value);
}
}
\ No newline at end of file
diff --git a/src/GameIdeas/Client/GameIdeas.BlazorApp/Shared/Components/Select/Components/SelectListElement.razor.css b/src/GameIdeas/Client/GameIdeas.BlazorApp/Shared/Components/Select/Components/SelectListElement.razor.css
index ad6d4c6..ea41ed2 100644
--- a/src/GameIdeas/Client/GameIdeas.BlazorApp/Shared/Components/Select/Components/SelectListElement.razor.css
+++ b/src/GameIdeas/Client/GameIdeas.BlazorApp/Shared/Components/Select/Components/SelectListElement.razor.css
@@ -1,8 +1,7 @@
.select-element {
display: flex;
flex-direction: row;
- width: fit-content;
- width: 100%;
+ width: auto;
gap: 6px;
height: 20px;
align-items: center;
@@ -17,6 +16,7 @@
min-width: 12px;
height: 12px;
min-height: 12px;
+ border: 1px solid var(--line);
}
.selected svg {
diff --git a/src/GameIdeas/Client/GameIdeas.BlazorApp/Shared/Components/Select/MultipleSelectList.razor b/src/GameIdeas/Client/GameIdeas.BlazorApp/Shared/Components/Select/MultipleSelectList.razor
index 0f91a06..83c296a 100644
--- a/src/GameIdeas/Client/GameIdeas.BlazorApp/Shared/Components/Select/MultipleSelectList.razor
+++ b/src/GameIdeas/Client/GameIdeas.BlazorApp/Shared/Components/Select/MultipleSelectList.razor
@@ -13,7 +13,7 @@
SearchClicked="HandleSearchClicked"
FocusIn="HandleTextFocusIn"/>