From 27b79b677e9b349852f3b453f967c7f175a71a8a Mon Sep 17 00:00:00 2001 From: 4gray Date: Tue, 24 Dec 2024 00:59:54 +0100 Subject: [PATCH] feat(search-results): enhance search input handling and layout adjustments --- .../search-results.component.html | 1 + .../search-results.component.scss | 8 +++++++ .../search-results.component.ts | 22 +++++++++++++++---- 3 files changed, 27 insertions(+), 4 deletions(-) diff --git a/src/app/xtream-tauri/search-results/search-results.component.html b/src/app/xtream-tauri/search-results/search-results.component.html index 10ccdbf1e..690a55124 100644 --- a/src/app/xtream-tauri/search-results/search-results.component.html +++ b/src/app/xtream-tauri/search-results/search-results.component.html @@ -6,6 +6,7 @@ Search content { + this.searchInput.nativeElement.focus(); + }); + } + onSearch() { if (this.searchTerm.length >= 3) { const types = Object.entries(this.filters) @@ -50,12 +64,12 @@ export class SearchResultsComponent { this.xtreamStore.setSelectedContentType(type); if (item.type === 'live') { - this.router.navigate(['..', 'live'], { + this.router.navigate(['..', type, item.category_id], { relativeTo: this.activatedRoute, }); } else { this.router.navigate( - ['..', item.category_id, type, item.xtream_id], + ['..', type, item.category_id, item.xtream_id], { relativeTo: this.activatedRoute, }