From 9771bb72c5885a828aafe6d7da8955c9b363c227 Mon Sep 17 00:00:00 2001 From: yiekheng Date: Sun, 3 May 2026 08:17:23 +0800 Subject: [PATCH] fix(web): move mobile status back into card header next to username Earlier change made the badge the editable trigger and demoted it into the body's Status row. That separated status from the row identifier on mobile, which read as 'where is this status from?'. Move the EditableCell-with-StatusBadge back into the card header, right after the username, and drop the body Status row entirely. Mobile now matches desktop's information density: identifier + status badge inline, edit via badge click. --- web/components/accounts-table.tsx | 32 ++++++++++++++++--------------- 1 file changed, 17 insertions(+), 15 deletions(-) diff --git a/web/components/accounts-table.tsx b/web/components/accounts-table.tsx index 7278310..57bb8c2 100644 --- a/web/components/accounts-table.tsx +++ b/web/components/accounts-table.tsx @@ -237,10 +237,23 @@ export default function AccountsTable({ initial, prefixPattern }: Props) { const k = (f: string) => `${row.username}::${f}`; return (
-
- - {row.username} - +
+
+ + {row.username} + +
+ setEditingKey(k("status"))} + onEditEnd={() => setEditingKey(null)} + onSave={(v) => saveCell(row.username, "status", v)} + renderView={(v) => } + /> +
+
{ @@ -260,17 +273,6 @@ export default function AccountsTable({ initial, prefixPattern }: Props) { onSave={(v) => saveCell(row.username, "password", v)} /> - - setEditingKey(k("status"))} - onEditEnd={() => setEditingKey(null)} - onSave={(v) => saveCell(row.username, "status", v)} - renderView={(v) => } - /> -