fix that the edit icon is messing with the menu entry height on some systems default tip

Sat, 04 Oct 2025 16:59:07 +0200

author
Mike Becker <universe@uap-core.de>
date
Sat, 04 Oct 2025 16:59:07 +0200
changeset 395
c3ef1c328b36
parent 394
b6357a984ae7

fix that the edit icon is messing with the menu entry height on some systems

src/main/webapp/WEB-INF/jspf/navmenu.jspf file | annotate | diff | comparison | revisions
src/main/webapp/lightpit.css file | annotate | diff | comparison | revisions
--- a/src/main/webapp/WEB-INF/jspf/navmenu.jspf	Sat Oct 04 16:31:41 2025 +0200
+++ b/src/main/webapp/WEB-INF/jspf/navmenu.jspf	Sat Oct 04 16:59:07 2025 +0200
@@ -52,7 +52,9 @@
             </c:if>
         </a>
         <c:if test="${not empty entry.editHref}">
-            <a class="onhover-edit-icon" href="${entry.editHref}">&#x270e;</a>
+            <span class="edit-icon-container">
+                <a class="onhover-edit-icon" href="${entry.editHref}">&#x270e;</a>
+            </span>
         </c:if>
     </div>
 </c:forEach>
--- a/src/main/webapp/lightpit.css	Sat Oct 04 16:31:41 2025 +0200
+++ b/src/main/webapp/lightpit.css	Sat Oct 04 16:59:07 2025 +0200
@@ -124,14 +124,18 @@
 
 #sideMenu .menuEntry {
     white-space: nowrap;
-    padding-right: 2em;
-    padding-top: .25em;
-    padding-bottom: .25em;
+    padding: .25em;
     border-bottom-style: solid;
     border-bottom-width: thin;
     border-bottom-color: #d7d7df;
 }
 
+#sideMenu .menuEntry .edit-icon-container {
+    width: .9em;
+    height: .9em;
+    display: inline-block;
+}
+
 #sideMenu .menuEntry .onhover-edit-icon {
     display: none;
 }

mercurial