This commit is contained in:
parent
18d4670077
commit
fa22ce9015
1 changed files with 1 additions and 1 deletions
|
@ -27,7 +27,7 @@ export const hideElements = (panels: string[], protyle?: IProtyle) => {
|
|||
}
|
||||
if (protyle.toolbar && panels.includes("util")) {
|
||||
const pinElement = protyle.toolbar.subElement.querySelector('[data-type="pin"]');
|
||||
if (!pinElement || (pinElement && !pinElement.classList.contains("ft__primary"))) {
|
||||
if (!pinElement || (pinElement && !pinElement.classList.contains("block__icon--active"))) {
|
||||
protyle.toolbar.subElement.classList.add("fn__none");
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue