Add game header #5

Merged
Egamorf merged 14 commits from feature/add-game-header into main 2025-03-20 18:33:28 +01:00
4 changed files with 6 additions and 1 deletions
Showing only changes of commit 08ab5a091d - Show all commits

View File

@@ -28,10 +28,12 @@ public partial class SearchInput
private async Task HandleClearClicked()
{
Text = string.Empty;
await TextChanged.InvokeAsync(string.Empty);
await ClearClicked.InvokeAsync();
}
private async Task HandleSearchClicked()
{
await TextChanged.InvokeAsync(Text);
await SearchClicked.InvokeAsync();
}
}

View File

@@ -8,7 +8,7 @@
Icon="SearchInputIcon.Dropdown"
TextChanged="HandleTextChanged"
ClearClicked="HandleTextChanged"
SearchClicked="Open" />
SearchClicked="Toggle" />
</div>
<div @onfocusout=HandleFocusOut
class="select-container @(AlignRight ? "align-right" : "")"

View File

@@ -19,6 +19,8 @@ public partial class MultipleSelectList<TItem>
public void Close() => ContentVisile = false;
public void Toggle() => ContentVisile = !ContentVisile;
private void HandleFocusOut() => Close();
private void HandleFocusIn() => Open();

View File

@@ -2,6 +2,7 @@
@using GameIdeas.BlazorApp.Pages.Games.Models
@using GameIdeas.BlazorApp.Shared.Components.Account
@using GameIdeas.BlazorApp.Shared.Components.Select
@using GameIdeas.BlazorApp.Shared.Components.Select.Models
@using GameIdeas.Resources
@inherits LayoutComponentBase