File tree Expand file tree Collapse file tree 1 file changed +7
-8
lines changed
Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -67,8 +67,7 @@ viewDiffSegment diffSide syntaxConfig segment =
6767 [ viewTooltip
6868 ( div [ class " tooltip-changes-summary" ]
6969 [ div [ class " hash-changed" ]
70- [ text " The hash changed"
71- , text " from "
70+ [ text " The hash changed from "
7271 , Hash . view fromHash
7372 , text " to "
7473 , Hash . view toHash
@@ -85,25 +84,25 @@ viewDiffSegment diffSide syntaxConfig segment =
8584 SegmentChange change ->
8685 let
8786 -- from and to are flipped depending on the side (direction) of the change
88- ( from, to ) =
87+ ( from, to, seg ) =
8988 case diffSide of
9089 Left ->
91- ( change. from, change. to )
90+ ( change. from, change. to, change . from )
9291
9392 Right ->
94- ( change. to, change. from )
93+ ( change. to, change. from, change . to )
9594 in
9695 [ viewTooltip
9796 ( div [ class " tooltip-changes-summary" ]
98- [ text " Changed from"
97+ [ text " Changed from "
9998 , code [] [ viewSegment from ]
100- , text " to "
99+ , text " to "
101100 , code [] [ viewSegment to ]
102101 ]
103102 )
104103 |> Tooltip . view
105104 ( span [ class " diff-segment segment-change" ]
106- [ viewSegment to ]
105+ [ viewSegment seg ]
107106 )
108107 ]
109108
You can’t perform that action at this time.
0 commit comments