From a0d3e4803b5427598684c7391629ce2fbd344548 Mon Sep 17 00:00:00 2001 From: Jens Peters Date: Wed, 25 Oct 2023 12:30:21 +0200 Subject: [PATCH] Prevent jumping of menu items on expand --- src/main/resources/assets/css/treeview.css | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/main/resources/assets/css/treeview.css b/src/main/resources/assets/css/treeview.css index 9473fbfa..2a0b7e73 100644 --- a/src/main/resources/assets/css/treeview.css +++ b/src/main/resources/assets/css/treeview.css @@ -10,17 +10,19 @@ ul.listree { ul.listree-submenu-items { list-style: none; white-space: nowrap; - padding-left: 10px + padding-left: 10px; } div.listree-submenu-heading.collapsed:before { content: "\25B6"; - margin-right: 4px + display: inline-block; + min-width: 20px; } div.listree-submenu-heading.expanded:before { content: "\25BC"; - margin-right: 4px + display: inline-block; + min-width: 20px; } .scrollable-menu {