From a3dc286fb437f9a17f7297744c9be0ec05f96d57 Mon Sep 17 00:00:00 2001 From: zombieFox Date: Sun, 14 Jun 2020 12:05:21 +0100 Subject: [PATCH] [refactor] improve link panel front when no display item is needed --- src/js/link.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/js/link.js b/src/js/link.js index 05080353..ed3cdbdc 100644 --- a/src/js/link.js +++ b/src/js/link.js @@ -1064,7 +1064,9 @@ var link = (function() { if (helper.checkIfValidString(stagedLink.link.image)) { linkPanelFront.appendChild(linkImage); }; - linkPanelFront.appendChild(linkDisplay); + if ((linkDisplayLetter != null || linkDisplayIcon != null || linkDisplayImage != null) || (helper.checkIfValidString(stagedLink.link.name))) { + linkPanelFront.appendChild(linkDisplay); + }; linkLeft.appendChild(linkLeftIcon); linkControl.appendChild(linkLeft); linkHandle.appendChild(linkHandleIcon);