Improved the placeholder of the chat search to say what it searches (#1118)

This commit is contained in:
Thorsten Sommer authored and GitHub committed 2026-10-27 15:37:12 +01:00
1 parent 03abd78a5f
commit 149395c1a0
6 files changed
+22 -10

No files matched your search

@@ -18,7 +18,7 @@ else
<MudTextField T="string"
Text="@this.searchText"
TextChanged="@this.OnSearchTextChanged"
Placeholder="@T("Search chats")"
Placeholder="@this.SearchPlaceholder"
Variant="Variant.Outlined"
Margin="Margin.Dense"
Immediate="@true"
@@ -115,6 +115,8 @@ public partial class Workspaces : MSGComponentBase
private bool HasSearchQuery => this.SearchVisible && !string.IsNullOrWhiteSpace(this.searchText);
private string SearchPlaceholder => this.includeThreadContents ? T("Search chat names and contents") : T("Search chat names");
private string GetAddChatToWorkspaceTooltip(string workspaceName) => string.Format(T("Start a new chat in workspace '{0}'"), workspaceName);
private async Task<Func<string?, string?>> CreateWorkspaceNameValidationAsync(Guid excludedWorkspaceId = default, string? originalWorkspaceName = null)