mirror of
https://github.com/purrgrammer/grimoire.git
synced 2026-04-12 00:17:02 +02:00
feat: show client tag in event header
Display "via <client>" after the timestamp in BaseEventContainer when the event has a client tag. Uses compact 10px font with reduced opacity to minimize visual noise.
This commit is contained in:
@@ -515,6 +515,9 @@ export function BaseEventContainer({
|
||||
// Use author override if provided, otherwise use event author
|
||||
const displayPubkey = authorOverride?.pubkey || event.pubkey;
|
||||
|
||||
// Get client tag if present
|
||||
const clientName = getTagValue(event, "client");
|
||||
|
||||
return (
|
||||
<EventContextMenu event={event}>
|
||||
<div className="flex flex-col gap-2 p-3 border-b border-border/50 last:border-0">
|
||||
@@ -527,6 +530,11 @@ export function BaseEventContainer({
|
||||
>
|
||||
{relativeTime}
|
||||
</span>
|
||||
{clientName && (
|
||||
<span className="text-[10px] text-muted-foreground/70">
|
||||
via {clientName}
|
||||
</span>
|
||||
)}
|
||||
</div>
|
||||
<EventMenu event={event} />
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user