diff --git a/modules/docs/src/Volo.Docs.Application.Contracts/Volo/Docs/Documents/ContentWithDetailsDto.cs b/modules/docs/src/Volo.Docs.Application.Contracts/Volo/Docs/Documents/ContentWithDetailsDto.cs index 067ad5e759..6723f04614 100644 --- a/modules/docs/src/Volo.Docs.Application.Contracts/Volo/Docs/Documents/ContentWithDetailsDto.cs +++ b/modules/docs/src/Volo.Docs.Application.Contracts/Volo/Docs/Documents/ContentWithDetailsDto.cs @@ -43,7 +43,7 @@ namespace Volo.Docs.Documents public bool IsEmpty => Text == null && Path == null; - public bool IsOpened(string documentName) + public bool IsSelected(string documentName) { if (documentName == null) { @@ -55,18 +55,19 @@ namespace Volo.Docs.Documents return documentName == Path; } - var isOpened = false; + var isSelected = false; foreach (var n in Items) { - if (n.IsOpened(documentName)) + if (n.IsSelected(documentName)) { - isOpened = true; + isSelected = true; break; } } - return isOpened; + return isSelected; } + } public class NavigationWithDetailsDto : DocumentWithDetailsDto diff --git a/modules/docs/src/Volo.Docs.Web/Areas/Documents/Helpers/TagHelpers/TreeTagHelper.cs b/modules/docs/src/Volo.Docs.Web/Areas/Documents/Helpers/TagHelpers/TreeTagHelper.cs index 1f38c22a78..43b672dcd6 100644 --- a/modules/docs/src/Volo.Docs.Web/Areas/Documents/Helpers/TagHelpers/TreeTagHelper.cs +++ b/modules/docs/src/Volo.Docs.Web/Areas/Documents/Helpers/TagHelpers/TreeTagHelper.cs @@ -9,7 +9,7 @@ namespace Volo.Docs.Areas.Documents.Helpers.TagHelpers [HtmlTargetElement("ul", Attributes = "root-node")] public class TreeTagHelper : TagHelper { - private const string LiItemTemplate = @"
  • + private const string LiItemTemplate = @"