Only show dimension transitions on relevent changes

This commit is contained in:
BrokenEagle
2020-02-20 19:25:36 +00:00
parent 9c6ef424ef
commit 878a3badd1

View File

@@ -3,7 +3,7 @@ module NoteVersionsHelper
previous = note_version.previous
html = "#{note_version.x},#{note_version.y}"
if previous.nil?
if previous.nil? || (note_version.x == previous.x && note_version.y == previous.y)
html
else
"#{previous.x},#{previous.y} -> " + html
@@ -14,7 +14,7 @@ module NoteVersionsHelper
previous = note_version.previous
html = "#{note_version.width}x#{note_version.height}"
if previous.nil?
if previous.nil? || (note_version.width == previous.width && note_version.height == previous.height)
html
else
"#{previous.width}x#{previous.height} -> " + html