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: pop search when touch textarea in Android Chrome (#1700)
CorrectRoadH6bb0b4cd473c
diff --git a/web/src/components/HomeSidebar.tsx b/web/src/components/HomeSidebar.tsxindex 66af855b6..82fdd9b0a 100644--- a/web/src/components/HomeSidebar.tsx+++ b/web/src/components/HomeSidebar.tsx@@ -1,5 +1,3 @@-import { useEffect } from "react";-import { resolution } from "../utils/layout";import { useLayoutStore, useUserStore } from "../store/module";import ShortcutList from "./ShortcutList";import TagList from "./TagList";@@ -11,35 +9,6 @@ const HomeSidebar = () => {const userStore = useUserStore();const showHomeSidebar = layoutStore.state.showHomeSidebar;- useEffect(() => {- let initialized = false;- let lastStatus = layoutStore.state.showHomeSidebar;- const handleWindowResize = () => {- let nextStatus = window.innerWidth < resolution.md;- if (lastStatus !== nextStatus) {- if (!initialized && nextStatus) {- // Don't show sidebar on first load in mobile view.- nextStatus = false;- }-- layoutStore.setHomeSidebarStatus(nextStatus);- lastStatus = nextStatus;- }-- if (!initialized) {- initialized = true;- return;- }- };-- window.addEventListener("resize", handleWindowResize);- handleWindowResize();-- return () => {- window.removeEventListener("resize", handleWindowResize);- };- }, []);-return (<divclassName={`fixed md:sticky top-0 left-0 w-full md:w-56 h-full shrink-0 pointer-events-none md:pointer-events-auto z-10 ${