diff --git a/frontend/src/Component/Contribution/ContributionPage.js b/frontend/src/Component/Contribution/ContributionPage.js index 130d2c0b..c74a4ffd 100644 --- a/frontend/src/Component/Contribution/ContributionPage.js +++ b/frontend/src/Component/Contribution/ContributionPage.js @@ -400,8 +400,7 @@ function ContributionPage() { } @media (max-width: 800px) { - font-size: 8px; - padding: 1px; + visibility: hidden; } `; diff --git a/frontend/src/Component/Page/utils/yjs/BlockLock.js b/frontend/src/Component/Page/utils/yjs/BlockLock.js index 387c549b..29f1a063 100644 --- a/frontend/src/Component/Page/utils/yjs/BlockLock.js +++ b/frontend/src/Component/Page/utils/yjs/BlockLock.js @@ -383,10 +383,12 @@ const BlockLock = forwardRef(({ ydocRef, editorRef }, ref) => { } } else { removeYjsMapUnLockData(nickname); - yLineLocks.set(guid.toString(), nickname); - yUserLocks.set(nickname, guid.toString()); - addIdToParagraph(guid.toString()); - toastr.success(`블록 편집 잠금이 설정되었습니다.`); + ydocRef.current.transact(() => { + yLineLocks.set(guid.toString(), nickname); + yUserLocks.set(nickname, guid.toString()); + addIdToParagraph(guid.toString()); + toastr.success(`블록 편집 잠금이 설정되었습니다.`); + }); } } catch (error) { const hoverDiv = document.querySelector(".hoverDiv");