forked from FoundKeyGang/FoundKey
client: display note update time
This commit is contained in:
parent
ca24080596
commit
76c8e6b11b
2 changed files with 13 additions and 0 deletions
|
@ -79,6 +79,12 @@
|
||||||
<MkA class="created-at" :to="notePage(appearNote)">
|
<MkA class="created-at" :to="notePage(appearNote)">
|
||||||
<MkTime :time="appearNote.createdAt" mode="detail"/>
|
<MkTime :time="appearNote.createdAt" mode="detail"/>
|
||||||
</MkA>
|
</MkA>
|
||||||
|
<!-- TODO link to edit history? -->
|
||||||
|
<div v-if="appearNote.updatedAt != null">
|
||||||
|
<i class="fas fa-pencil"></i>
|
||||||
|
{{ i18n.ts.updatedAt }}
|
||||||
|
<MkTime :time="appearNote.updatedAt" mode="detail"/>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<XReactionsViewer ref="reactionsViewer" :note="appearNote"/>
|
<XReactionsViewer ref="reactionsViewer" :note="appearNote"/>
|
||||||
<button class="button _button" @click="reply()">
|
<button class="button _button" @click="reply()">
|
||||||
|
|
|
@ -9,6 +9,9 @@
|
||||||
<MkA class="created-at" :to="notePage(note)">
|
<MkA class="created-at" :to="notePage(note)">
|
||||||
<MkTime :time="note.createdAt"/>
|
<MkTime :time="note.createdAt"/>
|
||||||
</MkA>
|
</MkA>
|
||||||
|
<span class="updated-at" v-if="note.updatedAt != null" ref="updatedEl">
|
||||||
|
<i class="fas fa-pencil"></i>
|
||||||
|
</span>
|
||||||
<MkVisibility :note="note"/>
|
<MkVisibility :note="note"/>
|
||||||
</div>
|
</div>
|
||||||
</header>
|
</header>
|
||||||
|
@ -69,6 +72,10 @@ defineProps<{
|
||||||
flex-shrink: 0;
|
flex-shrink: 0;
|
||||||
margin-left: auto;
|
margin-left: auto;
|
||||||
font-size: 0.9em;
|
font-size: 0.9em;
|
||||||
|
|
||||||
|
> .updated-at {
|
||||||
|
margin-left: var(--marginHalf);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
Loading…
Reference in a new issue