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: add server name change in mobile header (#4195)
Nikolayea394d89b27e
diff --git a/web/src/components/MobileHeader.tsx b/web/src/components/MobileHeader.tsxindex b85259883..e36c49481 100644--- a/web/src/components/MobileHeader.tsx+++ b/web/src/components/MobileHeader.tsx@@ -1,7 +1,9 @@import clsx from "clsx";-import { useState } from "react";import useWindowScroll from "react-use/lib/useWindowScroll";import useResponsiveWidth from "@/hooks/useResponsiveWidth";+import { useWorkspaceSettingStore } from "@/store/v1";+import { WorkspaceGeneralSetting } from "@/types/proto/api/v1/workspace_setting_service";+import { WorkspaceSettingKey } from "@/types/proto/store/workspace_setting";import NavigationDrawer from "./NavigationDrawer";interface Props {@@ -12,8 +14,10 @@ interface Props {const MobileHeader = (props: Props) => {const { className, children } = props;const { sm } = useResponsiveWidth();- const [titleText] = useState("Memos");const { y: offsetTop } = useWindowScroll();+ const workspaceSettingStore = useWorkspaceSettingStore();+ const workspaceGeneralSetting =+ workspaceSettingStore.getWorkspaceSettingByKey(WorkspaceSettingKey.GENERAL).generalSetting || WorkspaceGeneralSetting.fromPartial({});return (<div@@ -29,7 +33,7 @@ const MobileHeader = (props: Props) => {className="font-bold text-lg leading-10 mr-1 text-ellipsis shrink-0 cursor-pointer overflow-hidden text-gray-700 dark:text-gray-300"onDoubleClick={() => location.reload()}>- {titleText}+ {workspaceGeneralSetting.customProfile?.title || "Memos"}</span></div><div className="flex flex-row justify-end items-center">{children}</div>