diff --git a/QuickLook.Plugin/QuickLook.Plugin.AppViewer/InfoPanels/NugetInfoPanel.xaml b/QuickLook.Plugin/QuickLook.Plugin.AppViewer/InfoPanels/NugetInfoPanel.xaml index ce96051..c6b0448 100644 --- a/QuickLook.Plugin/QuickLook.Plugin.AppViewer/InfoPanels/NugetInfoPanel.xaml +++ b/QuickLook.Plugin/QuickLook.Plugin.AppViewer/InfoPanels/NugetInfoPanel.xaml @@ -52,6 +52,7 @@ + + Text="Project Website" + Visibility="Collapsed" /> - + TextTrimming="CharacterEllipsis" + Visibility="Collapsed"> + @@ -163,18 +163,17 @@ Grid.Row="8" Grid.Column="1" Padding="3" - Visibility="Collapsed" Foreground="{DynamicResource WindowTextForegroundAlternative}" - Text="Source Repository" /> + Text="Source Repository" + Visibility="Collapsed" /> - + TextTrimming="CharacterEllipsis" + Visibility="Collapsed"> + @@ -223,9 +222,37 @@ Foreground="{DynamicResource WindowTextForegroundAlternative}" Text="Searching..." TextTrimming="CharacterEllipsis" /> + + + + + + + + + 0) { diff --git a/QuickLook.Plugin/QuickLook.Plugin.AppViewer/PackageParsers/Nuget/NugetParser.cs b/QuickLook.Plugin/QuickLook.Plugin.AppViewer/PackageParsers/Nuget/NugetParser.cs index d22787b..41cea8e 100644 --- a/QuickLook.Plugin/QuickLook.Plugin.AppViewer/PackageParsers/Nuget/NugetParser.cs +++ b/QuickLook.Plugin/QuickLook.Plugin.AppViewer/PackageParsers/Nuget/NugetParser.cs @@ -116,11 +116,10 @@ public static class NugetParser if (groups.Count > 0) { // Collect distinct target frameworks - info.TargetFrameworks = groups + info.TargetFrameworks = [.. groups .Select(g => g.Attribute("targetFramework")?.Value?.Trim()) .Where(s => !string.IsNullOrEmpty(s)) - .Distinct() - .ToArray(); + .Distinct()]; // Format all dependencies grouped by framework var depLines = new List(); @@ -142,20 +141,19 @@ public static class NugetParser depLines.Add($" {line}"); } } - info.Dependencies = depLines.ToArray(); + info.Dependencies = [.. depLines]; } else { // No groups — direct top-level dependencies - info.Dependencies = depsEl.Elements(ns + "dependency") + info.Dependencies = [.. depsEl.Elements(ns + "dependency") .Select(d => { string id = d.Attribute("id")?.Value?.Trim() ?? string.Empty; string ver = d.Attribute("version")?.Value?.Trim() ?? string.Empty; return string.IsNullOrEmpty(ver) ? id : $"{id} ({ver})"; }) - .Where(s => !string.IsNullOrWhiteSpace(s)) - .ToArray(); + .Where(s => !string.IsNullOrWhiteSpace(s))]; } } } diff --git a/QuickLook.Plugin/QuickLook.Plugin.AppViewer/Plugin.cs b/QuickLook.Plugin/QuickLook.Plugin.AppViewer/Plugin.cs index 487d605..35f295f 100644 --- a/QuickLook.Plugin/QuickLook.Plugin.AppViewer/Plugin.cs +++ b/QuickLook.Plugin/QuickLook.Plugin.AppViewer/Plugin.cs @@ -91,7 +91,7 @@ public sealed class Plugin : IViewer ".appimage" => new Size { Width = 600, Height = 300 }, ".rpm" => new Size { Width = 600, Height = 260 }, ".wgt" or ".wgtu" => new Size { Width = 600, Height = 345 }, - ".nupkg" or ".snupkg" => new Size { Width = 660, Height = 580 }, + ".nupkg" or ".snupkg" => new Size { Width = 700, Height = 580 }, _ => throw new NotSupportedException("Extension is not supported."), }; context.Title = string.Empty;