diff --git a/web/src/components/ActivityCalendar.tsx b/web/src/components/ActivityCalendar.tsx index e2191718..7edaee65 100644 --- a/web/src/components/ActivityCalendar.tsx +++ b/web/src/components/ActivityCalendar.tsx @@ -49,7 +49,7 @@ const ActivityCalendar = (props: Props) => { const date = `${year}-${month}-${day}`; const count = data[date] || 0; return day ? ( - +
) : ( diff --git a/web/src/components/ChangeMemoCreatedTsDialog.tsx b/web/src/components/ChangeMemoCreatedTsDialog.tsx index c5639c58..98c3f1ee 100644 --- a/web/src/components/ChangeMemoCreatedTsDialog.tsx +++ b/web/src/components/ChangeMemoCreatedTsDialog.tsx @@ -1,7 +1,7 @@ import { Button, IconButton, Input } from "@mui/joy"; import { useEffect, useState } from "react"; import { toast } from "react-hot-toast"; -import { getNormalizedTimeString, getUnixTime } from "@/helpers/datetime"; +import { getNormalizedTimeString } from "@/helpers/datetime"; import { useMemoStore } from "@/store/v1"; import { useTranslate } from "@/utils/i18n"; import { generateDialog } from "./Dialog"; @@ -40,12 +40,6 @@ const ChangeMemoCreatedTsDialog: React.FC = (props: Props) => { }; const handleSaveBtnClick = async () => { - const nowTs = getUnixTime(); - if (getUnixTime(createdAt) > nowTs) { - toast.error(t("message.invalid-created-datetime")); - return; - } - try { await memoStore.updateMemo( { diff --git a/web/src/pages/Timeline.tsx b/web/src/pages/Timeline.tsx index 82727a93..ea19606e 100644 --- a/web/src/pages/Timeline.tsx +++ b/web/src/pages/Timeline.tsx @@ -108,7 +108,7 @@ const Timeline = () => { key={group.month} className={classNames("flex justify-start items-start w-full mt-2 mb-4", md ? "flex-row" : "flex-col")} > -
+
{new Date(group.month).toLocaleString(i18n.language, { month: "short" })} @@ -122,11 +122,11 @@ const Timeline = () => { {group.memos.map((memo, index) => (
{group.memos.length > 1 && ( -
+
{index !== group.memos.length - 1 && (
)}