Memos is an open-source, self-hosted note-taking app that brings your everyday thoughts together in a personal timeline. Your data stays yours, and you choose what to keep private or share.
Go dockerfossgomarkdownmemomicroblognote-takingnotesopen-sourceown-your-datareactself-hostedsqlitetimeline
fix: body overflow styles #3056
zty999a05307e03
diff --git a/web/src/components/Dialog/BaseDialog.tsx b/web/src/components/Dialog/BaseDialog.tsxindex 27df8fadc..50e13b59a 100644--- a/web/src/components/Dialog/BaseDialog.tsx+++ b/web/src/components/Dialog/BaseDialog.tsx@@ -73,6 +73,7 @@ export function generateDialog<T extends DialogProps>(const tempDiv = document.createElement("div");const dialog = createRoot(tempDiv);document.body.append(tempDiv);+ document.body.style.overflow = "hidden";setTimeout(() => {tempDiv.firstElementChild?.classList.add("showup");@@ -82,6 +83,7 @@ export function generateDialog<T extends DialogProps>(destroy: () => {tempDiv.firstElementChild?.classList.remove("showup");tempDiv.firstElementChild?.classList.add("showoff");+ document.body.style.removeProperty("overflow");setTimeout(() => {dialog.unmount();tempDiv.remove();