From 1a4f04cb8109703f31ab691f6352c79b05fab56f Mon Sep 17 00:00:00 2001 From: cgfhtw Date: Tue, 30 Jul 2024 11:16:32 +0200 Subject: [PATCH] Dropdown close & style improvements --- public/css/Studentenverwaltung.css | 16 +- .../Details/Status/Dropdown.js | 250 +++++++++--------- 2 files changed, 131 insertions(+), 135 deletions(-) diff --git a/public/css/Studentenverwaltung.css b/public/css/Studentenverwaltung.css index ff7fbb09f..efa4dbb1a 100644 --- a/public/css/Studentenverwaltung.css +++ b/public/css/Studentenverwaltung.css @@ -48,20 +48,8 @@ html { } /* Dropdown Toolbar Interessent, submenu */ -.dropdown-menu-right { - left: 100%; - top: 5; - margin-left: 0.1rem; - margin-top: -1rem; -} - -.dropdown-submenu:hover>.dropdown-menu-right { - display: block; -} - -.dropdown-submenu>.dropdown-menu-right { - display: none; - position: absolute; +.dropend .dropdown-toggle.d-flex::after { + height: 0; } @media (min-width: 768px) { diff --git a/public/js/components/Stv/Studentenverwaltung/Details/Status/Dropdown.js b/public/js/components/Stv/Studentenverwaltung/Details/Status/Dropdown.js index a8bd7782a..5f10b2454 100644 --- a/public/js/components/Stv/Studentenverwaltung/Details/Status/Dropdown.js +++ b/public/js/components/Stv/Studentenverwaltung/Details/Status/Dropdown.js @@ -154,6 +154,7 @@ export default { }, methods: { executeLink(link) { + bootstrap.Dropdown.getInstance(this.$refs.toolbarButton).hide(); // Split the link string to extract the function name and arguments const match = link.match(/(\w+)\(([^)]*)\)/); const functionName = match ? match[1] : link; @@ -597,131 +598,138 @@ export default { .catch(this.$fhcAlert.handleSystemError); }, template: ` -
- - - - - - - - - - - - + + + + + + + + + + + +
+ + + +
+
` }; \ No newline at end of file