mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-02-28 05:32:52 +00:00
This commit is contained in:
@@ -465,7 +465,7 @@ export const zoomOut = (protyle: IProtyle, id: string, focusId?: string, isPushB
|
||||
if (isPushBack) {
|
||||
pushBack();
|
||||
}
|
||||
} else {
|
||||
} else if (protyle.breadcrumb) {
|
||||
const exitFocusElement = protyle.breadcrumb.element.parentElement.querySelector('[data-type="exit-focus"]');
|
||||
if (id === protyle.block.rootID) {
|
||||
exitFocusElement.classList.add("fn__none");
|
||||
|
||||
@@ -35,7 +35,7 @@ export class Breadcrumb {
|
||||
constructor(protyle: IProtyle) {
|
||||
const element = document.createElement("div");
|
||||
element.className = "protyle-breadcrumb";
|
||||
const isFocus = protyle.options.action.includes(Constants.CB_GET_ALL);
|
||||
const isFocus = protyle.options.action.includes(Constants.CB_GET_ALL) && !isMobile();
|
||||
let html = `<div class="protyle-breadcrumb__bar"></div>
|
||||
<span class="protyle-breadcrumb__space"></span>
|
||||
<button class="block__icon block__icon--show ft__smaller fn__flex-center${isFocus ? "" : " fn__none"}" style="line-height: 14px" data-type="exit-focus">${window.siyuan.languages.exitFocus}</button>
|
||||
|
||||
Reference in New Issue
Block a user