From 278eb4b17af77596190c2be7e90e52145bec0c05 Mon Sep 17 00:00:00 2001 From: Masterjun3 Date: Tue, 5 Nov 2024 23:50:28 +0100 Subject: [PATCH 1/2] make wiki diff collapsable and collapsed by default --- TASVideos/TagHelpers/DiffPanelTagHelper.cs | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/TASVideos/TagHelpers/DiffPanelTagHelper.cs b/TASVideos/TagHelpers/DiffPanelTagHelper.cs index 16669ed09..9a1db057e 100644 --- a/TASVideos/TagHelpers/DiffPanelTagHelper.cs +++ b/TASVideos/TagHelpers/DiffPanelTagHelper.cs @@ -13,14 +13,22 @@ public override void Process(TagHelperContext context, TagHelperOutput output) { ViewContext.ViewData.UseDiff(); output.TagName = "div"; + output.AddCssClass("card mt-4"); output.Content.AppendHtml( """ -
-
- - - +
+ Diff +
+
+
+
+
+ + + +
+
"""); } From baaf338be28c3796c7d4a35e81ff5eef3c3e176a Mon Sep 17 00:00:00 2001 From: Masterjun3 Date: Tue, 5 Nov 2024 23:53:53 +0100 Subject: [PATCH 2/2] it needs this class for the chevron to work correctly --- TASVideos/TagHelpers/DiffPanelTagHelper.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TASVideos/TagHelpers/DiffPanelTagHelper.cs b/TASVideos/TagHelpers/DiffPanelTagHelper.cs index 9a1db057e..fbb8e71f7 100644 --- a/TASVideos/TagHelpers/DiffPanelTagHelper.cs +++ b/TASVideos/TagHelpers/DiffPanelTagHelper.cs @@ -18,7 +18,7 @@ public override void Process(TagHelperContext context, TagHelperOutput output) output.Content.AppendHtml( """