fix(admin): label Message/Export/Warn as text buttons, not icon-only

Icon-only buttons needed a hover or click before their function was
clear, unlike Ban/Shadowban which already show text. Adds visible
labels to match, and wraps the action row so the wider buttons don't
get clipped on narrower admin-panel windows.
This commit is contained in:
admin committed 2026-08-12 19:37:25 +02:00
1 parent 72ae462513
commit cad7b8c5fc
1 file changed
+7 -4
+7 -4
View File
@@ -277,7 +277,7 @@ export default function AdminUsersPage() {
<p className="text-xs text-violet-400 mt-0.5">Shadowban: {user.shadowban.reason}</p>
)}
</div>
<div className="shrink-0 flex items-center gap-2">
<div className="shrink-0 flex flex-wrap items-center justify-end gap-2 max-w-md">
{user.pets[0] && (
<Button
size="sm"
@@ -291,8 +291,9 @@ export default function AdminUsersPage() {
startConversationMutation.variables?.targetPetId === user.pets[0].id ? (
<Loader2 className="h-4 w-4 animate-spin" />
) : (
<MessageCircle className="h-4 w-4" />
<MessageCircle className="h-4 w-4 mr-1.5" />
)}
Message
</Button>
)}
<Button
@@ -306,8 +307,9 @@ export default function AdminUsersPage() {
{exportDataMutation.isPending && exportDataMutation.variables?.ownerId === user.id ? (
<Loader2 className="h-4 w-4 animate-spin" />
) : (
<Download className="h-4 w-4" />
<Download className="h-4 w-4 mr-1.5" />
)}
Export
</Button>
<Button
size="sm"
@@ -316,7 +318,8 @@ export default function AdminUsersPage() {
onClick={() => setWarnTarget(user.id)}
title="Warnings"
>
<TriangleAlert className="h-4 w-4" />
<TriangleAlert className="h-4 w-4 mr-1.5" />
Warn
</Button>
{canDeleteAccounts && (
<Button