mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-08-01 20:52:27 +08:00
fix(client): dropdown width for horizontal layout
This commit is contained in:
parent
5f9439a9e0
commit
23873b72bf
@ -24,7 +24,6 @@ export default class LeftPaneToggleWidget extends CommandButtonWidget {
|
|||||||
if (isHorizontalLayout) {
|
if (isHorizontalLayout) {
|
||||||
this.settings.titlePlacement = "bottom";
|
this.settings.titlePlacement = "bottom";
|
||||||
}
|
}
|
||||||
console.log(this.settings);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
refreshIcon() {
|
refreshIcon() {
|
||||||
|
@ -2,12 +2,6 @@ import BasicWidget from "../basic_widget.js";
|
|||||||
|
|
||||||
const TPL = `
|
const TPL = `
|
||||||
<div class="dropdown right-dropdown-widget dropend">
|
<div class="dropdown right-dropdown-widget dropend">
|
||||||
<style>
|
|
||||||
.right-dropdown-widget {
|
|
||||||
height: 53px;
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
|
|
||||||
<button type="button" data-bs-toggle="dropdown"
|
<button type="button" data-bs-toggle="dropdown"
|
||||||
aria-haspopup="true" aria-expanded="false"
|
aria-haspopup="true" aria-expanded="false"
|
||||||
class="bx right-dropdown-button launcher-button"></button>
|
class="bx right-dropdown-button launcher-button"></button>
|
||||||
|
@ -1026,6 +1026,14 @@ li.dropdown-submenu:hover > ul.dropdown-menu {
|
|||||||
left: calc(-100% + 10px);
|
left: calc(-100% + 10px);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#launcher-pane.horizontal .right-dropdown-widget {
|
||||||
|
width: 53px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#launcher-pane.vertical .right-dropdown-widget {
|
||||||
|
height: 53px;
|
||||||
|
}
|
||||||
|
|
||||||
/* rotate caret on hover */
|
/* rotate caret on hover */
|
||||||
.dropdown-menu > li > a:hover:after {
|
.dropdown-menu > li > a:hover:after {
|
||||||
text-decoration: underline;
|
text-decoration: underline;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user