Skip to content

armgit / memos

Public Imported from GitHub
0

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.

chore: update button style

Steven1755c9dc7953
diff --git a/web/src/pages/MemoDetail.tsx b/web/src/pages/MemoDetail.tsx
index dfc95dc72..d6f87b350 100644
--- a/web/src/pages/MemoDetail.tsx
+++ b/web/src/pages/MemoDetail.tsx
@@ -112,23 +112,24 @@ const MemoDetail = () => {
<p className="text-3xl text-black opacity-80 dark:text-gray-200">{systemStatus.customizedProfile.name}</p>
</div>
<div className="relative flex-grow max-w-2xl w-full min-h-full flex flex-col justify-start items-start px-4 pb-6">
+ {memo.parent && (
+ <div className="w-full mb-4">
+ <Link
+ className="px-3 py-1 border rounded-full max-w-xs w-full text-sm flex flex-row justify-start items-center flex-nowrap text-gray-600 dark:text-gray-400 dark:border-gray-500 hover:shadow hover:opacity-80"
+ to={`/m/${memo.parent.id}`}
+ >
+ <Icon.ArrowUpLeftFromCircle className="w-4 h-auto shrink-0 opacity-60" />
+ <span className="mx-1 opacity-60">#{memo.parent.id}</span>
+ <span className="truncate">{memo.parent.content}</span>
+ </Link>
+ </div>
+ )}
<div className="w-full mb-4 flex flex-row justify-start items-center mr-1">
<span className="text-gray-400 select-none">{getDateTimeString(memo.displayTs)}</span>
- <Icon.Dot className="w-4 h-auto text-gray-400 dark:text-zinc-400" />
- <Tooltip title={"Identifier"} placement="top">
- <span className="text-gray-400 dark:text-gray-400">#{memo.id}</span>
- </Tooltip>
</div>
<MemoContent content={memo.content} />
<MemoResourceListView resourceList={memo.resourceList} />
<MemoRelationListView relationList={referenceRelations} />
- {memo.parent && (
- <div className="w-full mt-2">
- <Link to={`/m/${memo.parent.id}`}>
- <span className="text-xs text-gray-400 opacity-80">This is a comment of #{memo.parent.id}</span>
- </Link>
- </div>
- )}
<div className="w-full mt-4 flex flex-col sm:flex-row justify-start sm:justify-between sm:items-center gap-2">
<div className="flex flex-row justify-start items-center">
<Link to={`/u/${encodeURIComponent(memo.creatorUsername)}`}>
diff --git a/web/src/pages/SignIn.tsx b/web/src/pages/SignIn.tsx
index 54e493be4..91eec6a74 100644
--- a/web/src/pages/SignIn.tsx
+++ b/web/src/pages/SignIn.tsx
@@ -141,6 +141,7 @@ const SignIn = () => {
<div className="flex flex-row justify-end items-center w-full mt-6">
<Button
className="w-full"
+ size="md"
type="submit"
disabled={actionBtnLoadingState.isLoading}
loading={actionBtnLoadingState.isLoading}
diff --git a/web/src/pages/SignUp.tsx b/web/src/pages/SignUp.tsx
index e638aaeea..e7df371e7 100644
--- a/web/src/pages/SignUp.tsx
+++ b/web/src/pages/SignUp.tsx
@@ -107,6 +107,7 @@ const SignUp = () => {
<div className="flex flex-row justify-end items-center w-full mt-6">
<Button
className="w-full"
+ size="md"
type="submit"
disabled={actionBtnLoadingState.isLoading}
loading={actionBtnLoadingState.isLoading}