mirror of
https://github.com/usememos/memos.git
synced 2025-01-01 10:01:54 +08:00
chore: update memo detail header
This commit is contained in:
parent
dc3052e225
commit
b992d07f3e
1 changed files with 8 additions and 5 deletions
|
@ -93,11 +93,7 @@ const MemoDetail = () => {
|
|||
<div className="memo-container">
|
||||
<div className="memo-header">
|
||||
<span className="time-text">{dayjs(state.memo.createdTs).locale(i18n.language).format("YYYY/MM/DD HH:mm:ss")}</span>
|
||||
<span className="split-text">by</span>
|
||||
<a className="name-text" href={`/u/${state.memo.creator.id}`}>
|
||||
{state.memo.creator.name}
|
||||
</a>
|
||||
{user?.id === state.memo.creatorId && (
|
||||
{user?.id === state.memo.creatorId ? (
|
||||
<Dropdown
|
||||
className="visibility-selector"
|
||||
trigger={
|
||||
|
@ -120,6 +116,13 @@ const MemoDetail = () => {
|
|||
}
|
||||
actionsClassName="!w-28 !left-0 !p-1"
|
||||
/>
|
||||
) : (
|
||||
<>
|
||||
<span className="split-text">by</span>
|
||||
<a className="name-text" href={`/u/${state.memo.creator.id}`}>
|
||||
{state.memo.creator.name}
|
||||
</a>
|
||||
</>
|
||||
)}
|
||||
</div>
|
||||
<MemoContent className="memo-content" content={state.memo.content} onMemoContentClick={() => undefined} />
|
||||
|
|
Loading…
Reference in a new issue