chore: update memo relation style

This commit is contained in:
Steven
2024-01-21 11:22:25 +08:00
parent c38404b5d5
commit fae0b4e900
4 changed files with 16 additions and 20 deletions

View File

@ -150,7 +150,7 @@ const MemoView: React.FC<Props> = (props: Props) => {
};
const handleCopyMemoId = () => {
copy(String(memo.id));
copy(memo.name);
toast.success("Copied to clipboard!");
};
@ -246,10 +246,10 @@ const MemoView: React.FC<Props> = (props: Props) => {
{t("common.delete")}
</span>
<Divider className="!my-1" />
<div className="w-full px-3 text-xs text-gray-400">
<span className="cursor-pointer" onClick={handleCopyMemoId}>
ID: <span className="font-mono">{memo.id}</span>
</span>
<div className="w-full pl-3 pr-2 text-xs text-gray-400">
<div className="font-mono max-w-20 cursor-pointer truncate" onClick={handleCopyMemoId}>
ID: {memo.name}
</div>
</div>
</div>
</div>