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
chore: tweak max width
Steven584c66906883
diff --git a/docs/apidocs.swagger.yaml b/docs/apidocs.swagger.yamlindex 6cc25f2b2..00a62af40 100644--- a/docs/apidocs.swagger.yaml+++ b/docs/apidocs.swagger.yaml@@ -2137,7 +2137,8 @@ definitions:Note: this functionality is not currently available in the officialprotobuf release, and it is not used for type URLs beginning with- type.googleapis.com.+ type.googleapis.com. As of May 2023, there are no widely used type server+ implementations and no plans to implement one.Schemes other than `http`, `https` (or the empty scheme) might beused with implementation specific semantics.@@ -2172,7 +2173,7 @@ definitions:foo = any.unpack(Foo.getDefaultInstance());}- Example 3: Pack and unpack a message in Python.+ Example 3: Pack and unpack a message in Python.foo = Foo(...)any = Any()@@ -2182,7 +2183,7 @@ definitions:any.Unpack(foo)...- Example 4: Pack and unpack a message in Go+ Example 4: Pack and unpack a message in Gofoo := &pb.Foo{...}any, err := anypb.New(foo)@@ -2202,7 +2203,7 @@ definitions:name "y.z".JSON-+ ====The JSON representation of an `Any` value uses the regularrepresentation of the deserialized, embedded message, with anadditional field `@type` which contains the type URL. Example:diff --git a/web/package.json b/web/package.jsonindex b37aecaab..36c035807 100644--- a/web/package.json+++ b/web/package.json@@ -13,7 +13,7 @@"@github/relative-time-element": "^4.4.0","@matejmazur/react-katex": "^3.1.3","@mui/joy": "5.0.0-beta.36",- "@reduxjs/toolkit": "^2.2.3",+ "@reduxjs/toolkit": "^2.2.4","clsx": "^2.1.1","copy-to-clipboard": "^3.3.3","dayjs": "^1.11.11",@@ -43,7 +43,7 @@"@types/dompurify": "^3.0.5","@types/katex": "^0.16.7","@types/lodash-es": "^4.17.12",- "@types/node": "^20.12.10",+ "@types/node": "^20.12.11","@types/qs": "^6.9.15","@types/react": "^18.3.1","@types/react-dom": "^18.3.0",@@ -64,6 +64,6 @@"prettier": "^3.2.5","protobufjs": "^7.2.6","typescript": "^5.4.5",- "vite": "^5.2.10"+ "vite": "^5.2.11"}}diff --git a/web/pnpm-lock.yaml b/web/pnpm-lock.yamlindex 21095a871..9ba5a42a6 100644--- a/web/pnpm-lock.yaml+++ b/web/pnpm-lock.yaml@@ -24,8 +24,8 @@ importers:specifier: 5.0.0-beta.36version: 5.0.0-beta.36(@emotion/[email protected](@types/[email protected])([email protected]))(@emotion/[email protected](@emotion/[email protected](@types/[email protected])([email protected]))(@types/[email protected])([email protected]))(@types/[email protected])([email protected]([email protected]))([email protected])'@reduxjs/toolkit':- specifier: ^2.2.3- version: 2.2.3([email protected](@types/[email protected])([email protected])([email protected]))([email protected])+ specifier: ^2.2.4+ version: 2.2.4([email protected](@types/[email protected])([email protected])([email protected]))([email protected])clsx:specifier: ^2.1.1version: 2.1.1@@ -109,8 +109,8 @@ importers:specifier: ^4.17.12version: 4.17.12'@types/node':- specifier: ^20.12.10- version: 20.12.10+ specifier: ^20.12.11+ version: 20.12.11'@types/qs':specifier: ^6.9.15version: 6.9.15@@ -134,7 +134,7 @@ importers:version: 7.8.0([email protected])([email protected])'@vitejs/plugin-react':specifier: ^4.2.1autoprefixer:specifier: ^10.4.19version: 10.4.19([email protected])@@ -172,8 +172,8 @@ importers:specifier: ^5.4.5version: 5.4.5vite:- specifier: ^5.2.10- version: 5.2.11(@types/[email protected])([email protected])+ specifier: ^5.2.11+ version: 5.2.11(@types/[email protected])([email protected])packages:@@ -757,8 +757,8 @@ packages:'@protobufjs/[email protected]':resolution: {integrity: sha512-Vvn3zZrhQZkkBE8LSuW3em98c0FwgO4nxzv6OdSxPKJIEKY2bGbHn+mhGIPerzI4twdxaP8/0+06HBpwf345Lw==}- '@reduxjs/[email protected]':- resolution: {integrity: sha512-76dll9EnJXg4EVcI5YNxZA/9hSAmZsFqzMmNRHvIlzw2WS/twfcVX3ysYrWGJMClwEmChQFC4yRq74tn6fdzRA==}+ '@reduxjs/[email protected]':+ resolution: {integrity: sha512-EoIC9iC2V/DLRBVMXRHrO/oM3QBT7RuJNeBRx8Cpnz/NHINeZBEqgI8YOxAYUjLp+KYxGgc4Wd6KoAKsaUBGhg==}peerDependencies:react: ^16.9.0 || ^17.0.0 || ^18react-redux: ^7.2.1 || ^8.1.3 || ^9.0.0@@ -999,8 +999,8 @@ packages:'@types/[email protected]':resolution: {integrity: sha512-nG96G3Wp6acyAgJqGasjODb+acrI7KltPiRxzHPXnP3NgI28bpQDRv53olbqGXbfcgF5aiiHmO3xpwEpS5Ld9g==}- '@types/[email protected]':- resolution: {integrity: sha512-Eem5pH9pmWBHoGAT8Dr5fdc5rYA+4NAovdM4EktRPVAAiJhmWWfQrA0cFhAbOsQdSfIHjAud6YdkbL69+zSKjw==}+ '@types/[email protected]':+ resolution: {integrity: sha512-vDg9PZ/zi+Nqp6boSOT7plNuthRugEKixDv5sFTIpkE89MmNtEArAShI4mxuX2+UrLEe9pxC1vm2cjm9YlWbJw==}'@types/[email protected]':resolution: {integrity: sha512-dISoDXWWQwUquiKsyZ4Ng+HX2KsPL7LyHKHQwgGFEA3IaKac4Obd+h2a/a6waisAoepJlBcx9paWqjA8/HVjCw==}@@ -1237,8 +1237,8 @@ packages:resolution: {integrity: sha512-QOSvevhslijgYwRx6Rv7zKdMF8lbRmx+uQGx2+vDc+KI/eBnsy9kit5aj23AgGu3pa4t9AgwbnXWqS+iOY+2aA==}engines: {node: '>= 6'}- resolution: {integrity: sha512-RHVYKov7IcdNjVHJFNY/78RdG4oGVjbayxv8u5IO74Wv7Hlq4PnJE6mo/OjFijjVFNy5ijnCt6H3IIo4t+wfEw==}+ resolution: {integrity: sha512-mLyjzNI9I+Pix8zwcrpxEbGlfqOkF9kM3ptzmKNw5tizSyYwMe+nGLTqMK9cO+0E+Bh6TsBxNAaHWEM8xwSsmA==}resolution: {integrity: sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==}@@ -1549,8 +1549,8 @@ packages:resolution: {integrity: sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==}- resolution: {integrity: sha512-RJKZ9+vEBMeiPAvKNWyZjuYyUqMndcP1f335oHqn3BEQbs2NFtVrnK5+6Xg5wSM9TknNNpWghGDUCKGYF+xWXw==}+ resolution: {integrity: sha512-PIbxpiJGx6Bb8dQaonNc6CGTRlVntdLg/2nMa1YhnrwYOORY9a3ZgGN0UQYE6lAcj/lkyduJN7BPt/JiY+jAQQ==}resolution: {integrity: sha512-f/ZeWvW/BCXbhGEf1Ujp29EASo/lk1FDnETgNKwJrsVvGZhUWCZyg3xLJjAsxfOmt8KjswHmI5EwCQcPMpOYhQ==}@@ -1780,8 +1780,8 @@ packages:resolution: {integrity: sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==}engines: {node: '>=10.13.0'}- resolution: {integrity: sha512-TCNv8vJ+xz4QiqTpfOJA7HvYv+tNIRHKfUWw/q+v2jdgN4ebz+KY9tGx5J4rHP0o84mNP+ApH66HRX8us3Khqg==}+ resolution: {integrity: sha512-CQ9K7FRtaP//lXUKJVVYFxvozIz3HR4Brk+yB5VSkmWiHVILwd7NqQ2+UH6Ab5/NzCLib+j1REVV+FSZ+ZHOvg==}engines: {node: '>=16 || 14 >=14.17'}hasBin: true@@ -2150,10 +2150,6 @@ packages:resolution: {integrity: sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==}- resolution: {integrity: sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==}- engines: {node: '>=10'}-resolution: {integrity: sha512-u6EPU8juLUk9ytRcyapkWI18epAv3RU+6+TC23ivjR0e+glWKBobFeSgRwOIJihzktILQuy6E0E80P2jVTDR5g==}peerDependencies:@@ -2258,8 +2254,8 @@ packages:resolution: {integrity: sha512-KqWh+VchfxcMNRAJjj2tnsSJdNbHsVgnkBhTNrW7AjVo6OvLtxw8zfT9oLw1JSohlFzJ8jCoTgaoXvJ+kHt6fw==}engines: {node: '>=16 || 14 >=14.17'}- resolution: {integrity: sha512-oGZRv2OT1lO2UF1zUcwdTb3wqUwI0kBGTgt/T7OdSj6M6N5m3o5uPf0AIW6lVxGGoiWUR7e2AwTE+xiwK8WQig==}+ resolution: {integrity: sha512-UZ7eQ+h8ywIRAW1hIEl2AqdwzJucU/Kp59+8kkZeSvafXhZjul247BvIJjEVFVeON6d7lM46XX1HXCduKAS8VA==}engines: {node: '>=16 || 14 >=14.17'}@@ -2388,8 +2384,8 @@ packages:resolution: {integrity: sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==}- resolution: {integrity: sha512-7xTavNy5RQXnsjANvVvMkEjvloOinkAjv/Z6Ildz9v2RinZ4SBKTWFOVRbaF8p0vpHnyjV/UwNDdKuUv6M5qcA==}+ resolution: {integrity: sha512-nYo46tkNDCe4Ti+K4WP/ns2BjywqQMAeAz7r3lqtVkh8A0L9F86Ju2nLIrzFMUDSs1X0lHivbCiKG4eRUK2Z2Q==}engines: {node: '>=16 || 14 >=14.17'}@@ -2668,8 +2664,8 @@ packages:resolution: {integrity: sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==}hasBin: true- resolution: {integrity: sha512-EnwXhrlwXMk9gKu5/flx5sv/an57AkRplG3hTK68W7FRDN+k+OWBj65M7719OkA82XLBxrcX0KSHj+X5COhOVg==}+ resolution: {integrity: sha512-f/vbBsu+fOiYt+lmwZV0rVwJScl46HppnOA1ZvIuBWKOTlllpyJ3bfVax76/OrhCH38dyxoDIA8K7uB963IYgA==}engines: {node: '>=10'}hasBin: true@@ -3004,9 +3000,6 @@ packages:resolution: {integrity: sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==}- resolution: {integrity: sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==}-resolution: {integrity: sha512-r3vXyErRCYJ7wg28yvBY5VSoAF8ZvlcW9/BwUzEtUsjvX/DKs24dIkuwjtuprwJJHsbyUbLApepYTR1BN4uHrg==}engines: {node: '>= 6'}@@ -3597,7 +3590,7 @@ snapshots:'@protobufjs/[email protected]': {}- '@reduxjs/[email protected]([email protected](@types/[email protected])([email protected])([email protected]))([email protected])':+ '@reduxjs/[email protected]([email protected](@types/[email protected])([email protected])([email protected]))([email protected])':dependencies:immer: 10.1.1redux: 5.0.1@@ -3837,7 +3830,7 @@ snapshots:'@types/[email protected]': {}- '@types/[email protected]':+ '@types/[email protected]':dependencies:undici-types: 5.26.5@@ -3881,7 +3874,7 @@ snapshots:graphemer: 1.4.0ignore: 5.3.1natural-compare: 1.4.0- semver: 7.6.0+ semver: 7.6.1ts-api-utils: 1.3.0([email protected])optionalDependencies:typescript: 5.4.5@@ -3928,7 +3921,7 @@ snapshots:globby: 11.1.0is-glob: 4.0.3minimatch: 9.0.4- semver: 7.6.0+ semver: 7.6.1ts-api-utils: 1.3.0([email protected])optionalDependencies:typescript: 5.4.5@@ -3944,7 +3937,7 @@ snapshots:'@typescript-eslint/types': 7.8.0'@typescript-eslint/typescript-estree': 7.8.0([email protected])eslint: 8.57.0- semver: 7.6.0+ semver: 7.6.1transitivePeerDependencies:- supports-color- typescript@@ -3956,14 +3949,14 @@ snapshots:'@ungap/[email protected]': {}dependencies:'@babel/core': 7.24.5'@babel/plugin-transform-react-jsx-self': 7.24.5(@babel/[email protected])'@babel/plugin-transform-react-jsx-source': 7.24.1(@babel/[email protected])'@types/babel__core': 7.20.5react-refresh: 0.14.2- vite: 5.2.11(@types/[email protected])([email protected])+ vite: 5.2.11(@types/[email protected])([email protected])transitivePeerDependencies:- supports-color@@ -4077,7 +4070,7 @@ snapshots:dependencies:browserslist: 4.23.0- caniuse-lite: 1.0.30001616+ caniuse-lite: 1.0.30001617fraction.js: 4.3.7normalize-range: 0.1.2picocolors: 1.0.0@@ -4113,8 +4106,8 @@ snapshots:dependencies:- caniuse-lite: 1.0.30001616- electron-to-chromium: 1.4.756+ caniuse-lite: 1.0.30001617+ electron-to-chromium: 1.4.761node-releases: 2.0.14update-browserslist-db: 1.0.15([email protected])@@ -4130,7 +4123,7 @@ snapshots:- [email protected]: {}+ [email protected]: {}dependencies:@@ -4471,7 +4464,7 @@ snapshots:- [email protected]: {}+ [email protected]: {}@@ -4821,13 +4814,13 @@ snapshots:dependencies:is-glob: 4.0.3dependencies:foreground-child: 3.1.1jackspeak: 2.3.6minimatch: 9.0.4- minipass: 7.1.0- path-scurry: 1.10.2+ minipass: 7.1.1+ path-scurry: 1.10.4dependencies:@@ -5167,10 +5160,6 @@ snapshots:dependencies:yallist: 3.1.1- dependencies:- yallist: 4.0.0-dependencies:react: 18.3.1@@ -5380,7 +5369,7 @@ snapshots:dependencies:brace-expansion: 2.0.1- [email protected]: {}+ [email protected]: {}@@ -5518,10 +5507,10 @@ snapshots:dependencies:lru-cache: 10.2.2- minipass: 7.1.0+ minipass: 7.1.1@@ -5601,7 +5590,7 @@ snapshots:'@protobufjs/path': 1.1.2'@protobufjs/pool': 1.1.0'@protobufjs/utf8': 1.1.0- '@types/node': 20.12.10+ '@types/node': 20.12.11long: 5.2.3@@ -5813,9 +5802,7 @@ snapshots:- dependencies:- lru-cache: 6.0.0+ [email protected]: {}dependencies:@@ -5941,7 +5928,7 @@ snapshots:dependencies:'@jridgewell/gen-mapping': 0.3.5commander: 4.1.1- glob: 10.3.12+ glob: 10.3.13lines-and-columns: 1.2.4mz: 2.7.0pirates: 4.0.6@@ -6107,13 +6094,13 @@ snapshots:kleur: 4.1.5sade: 1.8.1dependencies:esbuild: 0.20.2postcss: 8.4.38rollup: 4.17.2optionalDependencies:- '@types/node': 20.12.10+ '@types/node': 20.12.11fsevents: 2.3.3less: 4.2.0@@ -6183,8 +6170,6 @@ snapshots:- [email protected]: {}-diff --git a/web/src/components/MemoContent/CodeBlock.tsx b/web/src/components/MemoContent/CodeBlock.tsxindex 5ba48359e..ff21aeb92 100644--- a/web/src/components/MemoContent/CodeBlock.tsx+++ b/web/src/components/MemoContent/CodeBlock.tsx@@ -1,11 +1,8 @@-import { Checkbox } from "@mui/joy";import clsx from "clsx";import copy from "copy-to-clipboard";import hljs from "highlight.js";-import { useCallback, useMemo, useState } from "react";+import { useCallback, useMemo } from "react";import toast from "react-hot-toast";-import useResponsiveWidth from "@/hooks/useResponsiveWidth";-import { useTranslate } from "@/utils/i18n";import Icon from "../Icon";import MermaidBlock from "./MermaidBlock";import { BaseProps } from "./types";@@ -31,12 +28,6 @@ const CodeBlock: React.FC<Props> = ({ language, content }: Props) => {return <MermaidBlock content={content} />;}- const { md } = useResponsiveWidth();- const t = useTranslate();-- const [wrap, setWrap] = useState(true);- const handleWrapChange = useCallback(() => setWrap(!wrap), [setWrap, wrap]);-const highlightedCode: string = useMemo(() => {try {const lang = hljs.getLanguage(formatedLanguage);@@ -61,25 +52,17 @@ const CodeBlock: React.FC<Props> = ({ language, content }: Props) => {<div className="w-full my-1 bg-amber-100 border-l-4 border-amber-400 rounded hover:shadow dark:bg-zinc-600 dark:border-zinc-400 relative"><div className="w-full px-2 py-1 flex flex-row justify-between items-center text-amber-500 dark:text-zinc-400"><span className="text-sm font-mono">{formatedLanguage}</span>- {md && <Icon.Copy className="w-4 h-auto cursor-pointer hover:opacity-80" onClick={handleCopyButtonClick} />}+ <Icon.Copy className="w-4 h-auto cursor-pointer hover:opacity-80" onClick={handleCopyButtonClick} /></div><div className="overflow-auto">- <pre className={clsx(wrap ? "whitespace-pre-wrap" : "no-wrap overflow-auto", "w-full p-2 bg-amber-50 dark:bg-zinc-700 relative")}>+ <pre className={clsx("no-wrap overflow-auto", "w-full p-2 bg-amber-50 dark:bg-zinc-700 relative")}><codeclassName={clsx(`language-${formatedLanguage}`, "block text-sm leading-5")}dangerouslySetInnerHTML={{ __html: highlightedCode }}></code></pre></div>- {!md && (- <div className="sticky flex px-2 h-8 bottom-0 bg-amber-100 dark:bg-zinc-600 rounded items-center">- <div className="grow h-full">- <Checkbox className="h-full items-center" label={t("memo.wrapping")} size="sm" checked={wrap} onChange={handleWrapChange} />- </div>- <Icon.Copy className="w-4 h-full cursor-pointer hover:opacity-80" onClick={handleCopyButtonClick} />- </div>- )}</div>);};diff --git a/web/src/pages/About.tsx b/web/src/pages/About.tsxindex d76dd3b58..b7c0aab86 100644--- a/web/src/pages/About.tsx+++ b/web/src/pages/About.tsx@@ -4,7 +4,7 @@ import MobileHeader from "@/components/MobileHeader";const About = () => {return (- <section className="@container w-full max-w-4xl min-h-full flex flex-col justify-start items-center sm:pt-3 md:pt-6 pb-8">+ <section className="@container w-full max-w-5xl min-h-full flex flex-col justify-start items-center sm:pt-3 md:pt-6 pb-8"><MobileHeader /><div className="w-full px-4 sm:px-6"><div className="w-full shadow flex flex-col justify-start items-start px-4 py-3 rounded-xl bg-white dark:bg-zinc-800 text-black dark:text-gray-300">diff --git a/web/src/pages/Archived.tsx b/web/src/pages/Archived.tsxindex e68fac5d1..480e1fc5a 100644--- a/web/src/pages/Archived.tsx+++ b/web/src/pages/Archived.tsx@@ -90,12 +90,16 @@ const Archived = () => {};return (- <section className="@container w-full max-w-4xl min-h-full flex flex-col justify-start items-center sm:pt-3 md:pt-6 pb-8">+ <section className="@container w-full max-w-5xl min-h-full flex flex-col justify-start items-center sm:pt-3 md:pt-6 pb-8"><MobileHeader /><div className="w-full px-4 sm:px-6"><div className="w-full flex flex-col justify-start items-start">- <div className="w-full flex flex-row justify-end items-center mb-2">- <div className="w-40">+ <div className="w-full flex flex-row justify-between items-center mb-2">+ <div className="flex flex-row justify-start items-center gap-1">+ <Icon.Archive className="w-5 h-auto opacity-70 shrink-0" />+ <span className="font-medium">{t("common.archived")}</span>+ </div>+ <div className="w-44"><SearchBar /></div></div>diff --git a/web/src/pages/Explore.tsx b/web/src/pages/Explore.tsxindex c55d521e1..15ed50b93 100644--- a/web/src/pages/Explore.tsx+++ b/web/src/pages/Explore.tsx@@ -58,7 +58,7 @@ const Explore = () => {};return (- <section className="@container w-full max-w-4xl min-h-full flex flex-col justify-start items-center sm:pt-3 md:pt-6 pb-8">+ <section className="@container w-full max-w-5xl min-h-full flex flex-col justify-start items-center sm:pt-3 md:pt-6 pb-8">{!md && (<MobileHeader><ExploreSidebarDrawer />diff --git a/web/src/pages/Home.tsx b/web/src/pages/Home.tsxindex b1e928225..e991d66d1 100644--- a/web/src/pages/Home.tsx+++ b/web/src/pages/Home.tsx@@ -72,7 +72,7 @@ const Home = () => {}, [memoList]);return (- <section className="@container w-full max-w-4xl min-h-full flex flex-col justify-start items-center sm:pt-3 md:pt-6 pb-8">+ <section className="@container w-full max-w-5xl min-h-full flex flex-col justify-start items-center sm:pt-3 md:pt-6 pb-8">{!md && (<MobileHeader><HomeSidebarDrawer />diff --git a/web/src/pages/Inboxes.tsx b/web/src/pages/Inboxes.tsxindex ffb62f17d..5deeae91e 100644--- a/web/src/pages/Inboxes.tsx+++ b/web/src/pages/Inboxes.tsx@@ -23,7 +23,7 @@ const Inboxes = () => {}, []);return (- <section className="@container w-full max-w-4xl min-h-full flex flex-col justify-start items-center sm:pt-3 md:pt-6 pb-8">+ <section className="@container w-full max-w-5xl min-h-full flex flex-col justify-start items-center sm:pt-3 md:pt-6 pb-8"><MobileHeader /><div className="w-full px-4 sm:px-6"><div className="w-full shadow flex flex-col justify-start items-start px-4 py-3 rounded-xl bg-white dark:bg-zinc-800 text-black dark:text-gray-300">diff --git a/web/src/pages/MemoDetail.tsx b/web/src/pages/MemoDetail.tsxindex 799aa253c..7619b5b66 100644--- a/web/src/pages/MemoDetail.tsx+++ b/web/src/pages/MemoDetail.tsx@@ -75,7 +75,7 @@ const MemoDetail = () => {};return (- <section className="@container w-full max-w-4xl min-h-full flex flex-col justify-start items-center sm:pt-3 md:pt-6 pb-8">+ <section className="@container w-full max-w-5xl min-h-full flex flex-col justify-start items-center sm:pt-3 md:pt-6 pb-8"><MobileHeader /><div className="w-full px-4 sm:px-6">{parentMemo && (@@ -110,10 +110,10 @@ const MemoDetail = () => {<Buttonvariant="plain"color="neutral"- startDecorator={<Icon.MessageCircle className="w-5 h-auto text-gray-400" />}+ endDecorator={<Icon.MessageCircle className="w-5 h-auto text-gray-400" />}onClick={handleShowCommentEditor}>- <span className="">{t("memo.comment.write-a-comment")}</span>+ <span className="font-normal">{t("memo.comment.write-a-comment")}</span></Button></div>)diff --git a/web/src/pages/NotFound.tsx b/web/src/pages/NotFound.tsxindex 9ec290def..0fac1e203 100644--- a/web/src/pages/NotFound.tsx+++ b/web/src/pages/NotFound.tsx@@ -2,7 +2,7 @@ import MobileHeader from "@/components/MobileHeader";const NotFound = () => {return (- <section className="@container w-full max-w-4xl min-h-[100svh] flex flex-col justify-start items-center sm:pt-3 md:pt-6 pb-8">+ <section className="@container w-full max-w-5xl min-h-[100svh] flex flex-col justify-start items-center sm:pt-3 md:pt-6 pb-8"><MobileHeader /><div className="w-full px-4 grow flex flex-col justify-center items-center sm:px-6"><p className="font-medium">{"The page you are looking for can't be found."}</p>diff --git a/web/src/pages/PermissionDenied.tsx b/web/src/pages/PermissionDenied.tsxindex 7cb766d16..788674030 100644--- a/web/src/pages/PermissionDenied.tsx+++ b/web/src/pages/PermissionDenied.tsx@@ -2,7 +2,7 @@ import MobileHeader from "@/components/MobileHeader";const PermissionDenied = () => {return (- <section className="@container w-full max-w-4xl min-h-[100svh] flex flex-col justify-start items-center sm:pt-3 md:pt-6 pb-8">+ <section className="@container w-full max-w-5xl min-h-[100svh] flex flex-col justify-start items-center sm:pt-3 md:pt-6 pb-8"><MobileHeader /><div className="w-full px-4 grow flex flex-col justify-center items-center sm:px-6"><p className="font-medium">Permission denied</p>diff --git a/web/src/pages/Resources.tsx b/web/src/pages/Resources.tsxindex eafc4c0b3..15397e933 100644--- a/web/src/pages/Resources.tsx+++ b/web/src/pages/Resources.tsx@@ -74,7 +74,7 @@ const Resources = () => {};return (- <section className="@container w-full max-w-4xl min-h-full flex flex-col justify-start items-center sm:pt-3 md:pt-6 pb-8">+ <section className="@container w-full max-w-5xl min-h-full flex flex-col justify-start items-center sm:pt-3 md:pt-6 pb-8"><MobileHeader /><div className="w-full px-4 sm:px-6"><div className="w-full shadow flex flex-col justify-start items-start px-4 py-3 rounded-xl bg-white dark:bg-zinc-800 text-black dark:text-gray-300">diff --git a/web/src/pages/Setting.tsx b/web/src/pages/Setting.tsxindex fc44ed2a6..760c6de38 100644--- a/web/src/pages/Setting.tsx+++ b/web/src/pages/Setting.tsx@@ -57,7 +57,7 @@ const Setting = () => {}, []);return (- <section className="@container w-full max-w-4xl min-h-full flex flex-col justify-start items-start sm:pt-3 md:pt-6 pb-8">+ <section className="@container w-full max-w-5xl min-h-full flex flex-col justify-start items-start sm:pt-3 md:pt-6 pb-8"><MobileHeader /><div className="w-full px-4 sm:px-6"><div className="w-full shadow flex flex-row justify-start items-start px-4 py-3 rounded-xl bg-white dark:bg-zinc-800 text-gray-600 dark:text-gray-400">diff --git a/web/src/pages/Timeline.tsx b/web/src/pages/Timeline.tsxindex 1f6db5175..d5db5eb62 100644--- a/web/src/pages/Timeline.tsx+++ b/web/src/pages/Timeline.tsx@@ -100,12 +100,18 @@ const Timeline = () => {return nextPageToken;};+ const handleSelectedDataChange = (date: string) => {+ if (dayjs(date).isValid()) {+ setSelectedDateString(new Date(date).toDateString());+ }+ };+const handleNewMemo = () => {showMemoEditorDialog({});};return (- <section className="@container w-full max-w-4xl min-h-full flex flex-col justify-start items-center sm:pt-3 md:pt-6 pb-8">+ <section className="@container w-full max-w-5xl min-h-full flex flex-col justify-start items-center sm:pt-3 md:pt-6 pb-8">{!md && (<MobileHeader><TimelineSidebarDrawer />@@ -141,9 +147,10 @@ const Timeline = () => {<inputclassName="inset-0 absolute z-1 opacity-0"type="date"- defaultValue={dayjs(selectedDateString).format("YYYY-MM-DD")}+ max={dayjs().format("YYYY-MM-DD")}+ value={dayjs(selectedDateString).format("YYYY-MM-DD")}onFocus={(e) => e.target.showPicker()}- onChange={(e) => setSelectedDateString(e.target.value)}+ onChange={(e) => handleSelectedDataChange(e.target.value)}/></div><span className="opacity-60 text-lg">{dayjs(monthString).year()}</span>diff --git a/web/src/pages/UserProfile.tsx b/web/src/pages/UserProfile.tsxindex 89dcea330..7a4ad7f05 100644--- a/web/src/pages/UserProfile.tsx+++ b/web/src/pages/UserProfile.tsx@@ -103,7 +103,7 @@ const UserProfile = () => {};return (- <section className="w-full max-w-4xl min-h-full flex flex-col justify-start items-center sm:pt-3 md:pt-6 pb-8">+ <section className="w-full max-w-5xl min-h-full flex flex-col justify-start items-center sm:pt-3 md:pt-6 pb-8"><MobileHeader /><div className="w-full px-4 sm:px-6 flex flex-col justify-start items-center">{!loadingState.isLoading &&