Добавил растяжение поиска (тест кэша)
This commit is contained in:
@@ -44,11 +44,14 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@if (_canAdd)
|
||||
{
|
||||
<div class="@(_activeMobileTab == 1 ? "d-flex" : "d-none") flex-column" style="height: 100%;">
|
||||
<div class="flex-grow-1 overflow-auto pb-1">
|
||||
@AddTrackCardContent
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
|
||||
@* Кастомная панель навигации внизу *@
|
||||
@@ -148,10 +151,11 @@
|
||||
{
|
||||
<MudCard Class="d-flex flex-column" Elevation="0" Style="height: 100%;">
|
||||
<MudCardHeader>
|
||||
<MudStack>
|
||||
<MudStack Style="width: 100%;">
|
||||
<MudText Typo="Typo.h6" Color="Color.Primary" Class="mb-4">Добавление треков</MudText>
|
||||
<MudTextField @bind-Value="_searchQuery"
|
||||
@bind-Value:after="OnSearchQueryChanged"
|
||||
@ref="_searchField"
|
||||
Variant="Variant.Outlined"
|
||||
FullWidth
|
||||
Label="Название или ссылка на трек"
|
||||
@@ -318,6 +322,8 @@
|
||||
private TrackSearchType _searchType = TrackSearchType.All;
|
||||
/// <summary>Состояние: Происходит поиск.</summary>
|
||||
private bool _isSearching = false;
|
||||
/// <summary>Ссылка на поле ввода</summary>
|
||||
private MudTextField<string> _searchField;
|
||||
|
||||
/// <summary>Результат поиска.</summary>
|
||||
private YandexSearchResult? _searchResult = null;
|
||||
@@ -536,6 +542,7 @@
|
||||
(type, query) = ParseYandexMusicUrl(uri);
|
||||
byId = true;
|
||||
_searchQuery = string.Empty;
|
||||
await _searchField.SetTextAsync(string.Empty);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user