fix(client): dropdown width for horizontal layout

This commit is contained in:
Elian Doran 2024-11-23 00:15:50 +02:00
parent 5f9439a9e0
commit 23873b72bf
No known key found for this signature in database
3 changed files with 8 additions and 7 deletions

View File

@ -24,7 +24,6 @@ export default class LeftPaneToggleWidget extends CommandButtonWidget {
if (isHorizontalLayout) {
this.settings.titlePlacement = "bottom";
}
console.log(this.settings);
}
refreshIcon() {

View File

@ -2,12 +2,6 @@ import BasicWidget from "../basic_widget.js";
const TPL = `
<div class="dropdown right-dropdown-widget dropend">
<style>
.right-dropdown-widget {
height: 53px;
}
</style>
<button type="button" data-bs-toggle="dropdown"
aria-haspopup="true" aria-expanded="false"
class="bx right-dropdown-button launcher-button"></button>

View File

@ -1026,6 +1026,14 @@ li.dropdown-submenu:hover > ul.dropdown-menu {
left: calc(-100% + 10px);
}
#launcher-pane.horizontal .right-dropdown-widget {
width: 53px;
}
#launcher-pane.vertical .right-dropdown-widget {
height: 53px;
}
/* rotate caret on hover */
.dropdown-menu > li > a:hover:after {
text-decoration: underline;