mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-29 12:58:48 +01:00
This commit is contained in:
parent
e92c8e95c9
commit
6894c1690e
2 changed files with 6 additions and 9 deletions
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue