mirror of
https://github.com/usememos/memos.git
synced 2025-06-05 22:09:59 +02:00
feat: unpin button in the corner (#374)
* feat: unpin button in corner * chore: update
This commit is contained in:
@ -184,6 +184,13 @@ const Memo: React.FC<Props> = (props: Props) => {
|
||||
|
||||
return (
|
||||
<div className={`memo-wrapper ${"memos-" + memo.id} ${memo.pinned ? "pinned" : ""}`} ref={memoContainerRef}>
|
||||
{memo.pinned && (
|
||||
<div className="corner-container">
|
||||
<span className="tip-text" onClick={handleTogglePinMemoBtnClick}>
|
||||
{t("common.unpin")}
|
||||
</span>
|
||||
</div>
|
||||
)}
|
||||
<div className="memo-top-wrapper">
|
||||
<div className="status-text-container">
|
||||
<span className="time-text" onClick={handleShowMemoStoryDialog}>
|
||||
|
Reference in New Issue
Block a user