From fe258136b07cab9dc71ff6efcce108d36cdc4268 Mon Sep 17 00:00:00 2001 From: Masterjun Date: Thu, 7 Nov 2024 02:14:46 +0100 Subject: [PATCH] Make Wiki diff collapsable and collapsed by default (#2029) * make wiki diff collapsable and collapsed by default * it needs this class for the chevron to work correctly --- 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..fbb8e71f7 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( """ -
-
- - - +
+ +
+
+
+
+
+ + + +
+
"""); }