Vanessa 2022-05-28 19:00:09 +08:00
parent e92c8e95c9
commit 6894c1690e
2 changed files with 6 additions and 9 deletions

View file

@ -48,10 +48,6 @@ export class Breadcrumb {
openFileById({id, action: [Constants.CB_GET_FOCUS]});
}
} else {
// const activeElement = this.element.querySelector(".protyle-breadcrumb__item--active")
// if (activeElement) {
// activeElement.classList.remove("protyle-breadcrumb__item--active");
// }
zoomOut(protyle, id);
}
event.preventDefault();
@ -401,7 +397,7 @@ export class Breadcrumb {
return;
}
let jump = false;
while (this.element.scrollHeight > 60 && !jump) {
while (this.element.scrollHeight > 30 && !jump) {
itemElements.find((item, index) => {
if (itemElements.length === 1) {
item.classList.add("protyle-breadcrumb__text--ellipsis");