From 278eb4b17af77596190c2be7e90e52145bec0c05 Mon Sep 17 00:00:00 2001 From: Masterjun3 Date: Tue, 5 Nov 2024 23:50:28 +0100 Subject: [PATCH] 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 +
+
+
+
+
+ + + +
+
"""); }