This commit is contained in:
Vanessa 2022-11-02 11:05:09 +08:00
parent 7cd8f8f7d0
commit e5703dc70f
3 changed files with 10 additions and 2 deletions

View file

@ -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 {

View file

@ -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,
});
}

View file

@ -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) {