Browse Source

show lib name under disc name in search result

HOME 2 years atrás
parent
commit
f34ab44a8a
1 changed files with 5 additions and 2 deletions
  1. 5 2
      FNZCM/FNZCM.BlazorWasm/UI/Views/Default/Search/SearchView.razor

+ 5 - 2
FNZCM/FNZCM.BlazorWasm/UI/Views/Default/Search/SearchView.razor

@@ -108,7 +108,10 @@
                             <tbody>
                                 <tr class="table-primary">
                                     <td><img src="@disc.CoverPath" style="height:50px" /></td>
-                                    <td colspan="2" class="w-100">@item.Key.Name</td>
+                                    <td colspan="2" class="w-100">
+                                        <div class="text-nowrap">@item.Key.Name</div>
+                                        <div class="text-nowrap text-muted">@item.Key.Lib.Name</div>
+                                    </td>
                                     <td colspan="2" class="text-end">
                                         <button class="btn btn-primary" @onclick="()=>dlgDisc.Show(disc)">
                                             <i class="bi bi-window-stack"></i>
@@ -188,7 +191,7 @@
 
         //TODO: search in disc name
 
-        resultText = $"Result for {searchExpression.NullOrEmptyEscape("<NONE>")} on {searchTrackSetKey} limit {searchLimitCount} of {matchedCount}{(flagPlus ? "+" : "")}";
+        resultText = $"Result for {searchExpression.NullOrEmptyEscape("<NONE>")} on {DataSet.AllTracksSet.Where(p => p.Key == searchTrackSetKey).Select(p => p.Name).FirstOrDefault() ?? "?"} limit {searchLimitCount} of {matchedCount}{(flagPlus ? "+" : "")}";
 
         resultEntries = filteredList
             .GroupBy(p => p.Disc)