mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-29 19:12:27 +08:00
style(next): toggle arrow on mobile
This commit is contained in:
parent
a28dff7525
commit
12eff0fef5
@ -170,14 +170,12 @@ class ContextMenu {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (this.isMobile && "items" in item && item.items) {
|
if (this.isMobile && "items" in item && item.items) {
|
||||||
// We run using a timeout to avoid the layout change during event handling, which would trigger the menu to be hidden sometimes.
|
const $item = $(e.target)
|
||||||
setTimeout(() => {
|
.closest(".dropdown-item");
|
||||||
$(e.target)
|
|
||||||
.closest(".dropdown-item")
|
$item.toggleClass("submenu-open");
|
||||||
.find("ul.dropdown-menu")
|
$item.find("ul.dropdown-menu")
|
||||||
.toggleClass("show");
|
.toggleClass("show");
|
||||||
}, 0);
|
|
||||||
e.preventDefault();
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1014,7 +1014,6 @@ html body .dropdown-item.disabled {
|
|||||||
justify-content: center;
|
justify-content: center;
|
||||||
top: 0;
|
top: 0;
|
||||||
right: 0;
|
right: 0;
|
||||||
height: 100%;
|
|
||||||
margin: unset !important;
|
margin: unset !important;
|
||||||
border: unset !important;
|
border: unset !important;
|
||||||
padding: 0 4px;
|
padding: 0 4px;
|
||||||
@ -1023,6 +1022,18 @@ html body .dropdown-item.disabled {
|
|||||||
color: var(--menu-item-arrow-color) !important;
|
color: var(--menu-item-arrow-color) !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
body.desktop .dropdown-menu .dropdown-toggle::after {
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
body.mobile .dropdown-menu .dropdown-toggle::after {
|
||||||
|
transform: rotate(90deg);
|
||||||
|
}
|
||||||
|
|
||||||
|
body.mobile .dropdown-menu .dropdown-item.submenu-open .dropdown-toggle::after {
|
||||||
|
transform: rotate(270deg);
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Calendar
|
* Calendar
|
||||||
*/
|
*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user