Merge pull request #4300 from BrokenEagle/fix-note-version-dimension-columns
Only show dimension transitions on relevant changes
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user