浏览代码

Some UX cleanups around display of info on modules

Nathan Schneider 3 年之前
父节点
当前提交
baf3fcf921
共有 2 个文件被更改,包括 3 次插入2 次删除
  1. 2 0
      _includes/rule-scripts.js
  2. 1 2
      _layouts/rule.html

+ 2 - 0
_includes/rule-scripts.js

@@ -61,6 +61,8 @@ https://github.com/Bernardo-Castilho/dragdroptouch -->
           var nowModule = new Date();
           module.id += "-" + nowModule.getTime();
       }
+      // hide the info button
+      module.children[1].style.display = "none";
       // display the deletion button
       module.children[2].style.display = "inline";
       // pop it in!

+ 1 - 2
_layouts/rule.html

@@ -69,8 +69,7 @@ layout: default
 		  <span id="module-name" title="{{ module.summary }}">{{ module.title }}</span>
           <a target="_blank" href="{{ module.url }}">
             <img title="More info" draggable="false" class="module-logo"
-                 src="{% link assets/tabler_icons/info-circle.svg %}" />
-          </a>
+                 src="{% link assets/tabler_icons/info-circle.svg %}" /></a>
 		  <a onclick="this.parentNode.remove()" class="delete-module"
 			 style="display:none">
 			<img src="{% link assets/tabler_icons/x.svg %}" /></a>