mirror of
https://github.com/notion-enhancer/notion-enhancer.git
synced 2025-04-06 21:49:03 +00:00
fix side panel mod being stuck outside the screen
This commit is contained in:
parent
f85f3b19e5
commit
b598aa451e
@ -76,6 +76,7 @@ module.exports = {
|
||||
|
||||
const attempt_interval = setInterval(enhance, 500);
|
||||
function enhance() {
|
||||
if (!store().width) store().width = 220;
|
||||
let curPanel = {};
|
||||
|
||||
const frame = document.querySelector('.notion-frame');
|
||||
@ -143,8 +144,8 @@ module.exports = {
|
||||
});
|
||||
|
||||
// Restore lock state
|
||||
if (store().locked === 'true') lockPanel();
|
||||
else unlockPanel(false);
|
||||
if (store().locked === 'false') unlockPanel(false);
|
||||
else lockPanel();
|
||||
|
||||
enableResize();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user