mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-22 09:30:14 +01:00
This commit is contained in:
parent
7cd8f8f7d0
commit
e5703dc70f
3 changed files with 10 additions and 2 deletions
|
|
@ -119,6 +119,12 @@
|
|||
&__label {
|
||||
flex: 1;
|
||||
min-width: 84px;
|
||||
@include text-clamp(1);
|
||||
max-width: 30vw;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
-webkit-mask-image: linear-gradient(to left, rgba(0, 0, 0, 0) 0, #000 12px);
|
||||
max-width: 30vw;
|
||||
}
|
||||
|
||||
&__icon {
|
||||
|
|
|
|||
|
|
@ -483,6 +483,8 @@ export class Wnd {
|
|||
|
||||
private renderTabList(event: MouseEvent) {
|
||||
window.siyuan.menus.menu.remove();
|
||||
window.siyuan.menus.menu.element.style.maxHeight = "70vh";
|
||||
window.siyuan.menus.menu.element.style.overflow = "auto";
|
||||
Array.from(this.headersElement.children).forEach((item: HTMLElement) => {
|
||||
const iconElement = item.querySelector(".item__icon");
|
||||
const graphicElement = item.querySelector(".item__graphic");
|
||||
|
|
@ -513,7 +515,7 @@ export class Wnd {
|
|||
}).element);
|
||||
});
|
||||
window.siyuan.menus.menu.popup({
|
||||
x: event.clientX,
|
||||
x: event.clientX - 16,
|
||||
y: event.clientY,
|
||||
});
|
||||
}
|
||||
|
|
|
|||
|
|
@ -76,7 +76,7 @@ export class Menu {
|
|||
this.element.innerHTML = "";
|
||||
this.element.removeAttribute("data-filetreeid"); // 用于标记文档数右键所选文档 https://ld246.com/article/1667311960383
|
||||
this.element.classList.add("fn__none");
|
||||
this.element.style.zIndex = "";
|
||||
this.element.removeAttribute("style")
|
||||
}
|
||||
|
||||
public append(element?: HTMLElement) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue