From f9929d0b73b0d970f34d785bbbfbcdc5ac749127 Mon Sep 17 00:00:00 2001 From: Samuele Locatelli Date: Tue, 28 Sep 2021 15:39:12 +0200 Subject: [PATCH] Modifica x visualizzare SEMPRE le differenze --- MP.Prog/Components/DiffView.razor | 47 ++++++++++++++----------------- 1 file changed, 21 insertions(+), 26 deletions(-) diff --git a/MP.Prog/Components/DiffView.razor b/MP.Prog/Components/DiffView.razor index 346db6ca..b801e281 100644 --- a/MP.Prog/Components/DiffView.razor +++ b/MP.Prog/Components/DiffView.razor @@ -15,36 +15,30 @@ - @if (numChanges > 0) - { -
-
-
-

Attuale

-
-
-
-
- @numChanges modifiche -
+
+
+
+

Attuale

+
+
+
+
+ @numChanges modifiche
-
- } -
-
-
-
-

@((MarkupString)oldResult)

- @if (numChanges > 0) - { -
-
-

@((MarkupString)newResult)

-
+
+
+
+
+

@((MarkupString)oldResult)

- } +
+
+
+

@((MarkupString)newResult)

+
+
@code { @@ -122,6 +116,7 @@ { case Operation.DELETE: sbOld.Append($"{item.text}"); + numChanges++; break; case Operation.INSERT: sbNew.Append($"{item.text}");