feat(agents): improve mobile table layout + responsive columns

This commit is contained in:
Abhimanyu Saharan
2026-02-12 07:58:20 +00:00
parent 8bd606a8dc
commit 58ed75eafc
2 changed files with 10 additions and 6 deletions

View File

@@ -142,7 +142,7 @@ export default function AgentsPage() {
adminOnlyMessage="Only organization owners and admins can access agents."
stickyHeader
>
<div className="overflow-hidden rounded-xl border border-slate-200 bg-white shadow-sm">
<div className="max-w-full overflow-x-auto rounded-xl border border-slate-200 bg-white shadow-sm">
<AgentsTable
agents={agents}
boards={boards}

View File

@@ -118,9 +118,9 @@ export function AgentsTable({
},
{
accessorKey: "openclaw_session_id",
header: "Session",
header: <span className="hidden sm:inline">Session</span>,
cell: ({ row }) => (
<span className="text-sm text-slate-700">
<span className="hidden text-sm text-slate-700 sm:inline">
{truncate(row.original.openclaw_session_id)}
</span>
),
@@ -149,8 +149,12 @@ export function AgentsTable({
},
{
accessorKey: "updated_at",
header: "Updated",
cell: ({ row }) => dateCell(row.original.updated_at),
header: <span className="hidden md:inline">Updated</span>,
cell: ({ row }) => (
<span className="hidden md:inline">
{dateCell(row.original.updated_at)}
</span>
),
},
];
@@ -187,7 +191,7 @@ export function AgentsTable({
: undefined
}
rowClassName="hover:bg-slate-50"
cellClassName="px-6 py-4"
cellClassName="px-3 py-3 sm:px-6 sm:py-4"
emptyState={
emptyState
? {