feat(ui): implement premium NexusSearchBox component and integrate semantic search navigation

This commit is contained in:
2026-05-21 20:16:14 +02:00
parent 37bec89484
commit 0a3ca77d46
9 changed files with 632 additions and 116 deletions
@@ -247,6 +247,17 @@
_isLoadingChapter = false;
StateHasChanged();
if (result.IsSuccess && !string.IsNullOrEmpty(NavigationService.PendingScrollBlockId))
{
var targetBlockId = NavigationService.PendingScrollBlockId;
NavigationService.PendingScrollBlockId = null; // Clear it to prevent multiple scrolls
// Give the browser slightly more than one frame to render the loaded blocks
await Task.Delay(150);
await ScrollToNodeAsync(targetBlockId);
await InteractionService.RequestHighlightBlock(targetBlockId);
}
}
public async Task ScrollToNodeAsync(string id)