Add clipboard utility with fallback and show selectable URLs

This commit is contained in:
CREDO23 2026-02-04 18:54:59 +02:00
parent ab3d99d9e0
commit 1cf7205a81
3 changed files with 57 additions and 51 deletions

View file

@ -38,6 +38,13 @@ export function PublicChatSnapshotRow({
{snapshot.message_count}
</span>
</div>
<input
type="text"
readOnly
value={snapshot.public_url}
className="mt-2 w-full text-xs text-muted-foreground bg-muted/50 border rounded px-2 py-1 select-all focus:outline-none focus:ring-1 focus:ring-ring"
onClick={(e) => (e.target as HTMLInputElement).select()}
/>
</div>
<div className="flex items-center gap-2">
<Button