fix: ui fixes

This commit is contained in:
gosangam
2026-06-16 16:58:17 +05:30
parent d3c043f6b0
commit 82566e23bb
+9 -6
View File
@@ -76,7 +76,6 @@ export default function UsersPage() {
<TR> <TR>
<TH>User</TH> <TH>User</TH>
<TH>Email</TH> <TH>Email</TH>
<TH>Auth</TH>
<TH>Posts</TH> <TH>Posts</TH>
<TH>Joined</TH> <TH>Joined</TH>
<TH className="text-right">Actions</TH> <TH className="text-right">Actions</TH>
@@ -84,7 +83,7 @@ export default function UsersPage() {
</THead> </THead>
<tbody> <tbody>
{list.items.length === 0 && !list.loading ? ( {list.items.length === 0 && !list.loading ? (
<EmptyRow cols={6} label="No users found." /> <EmptyRow cols={5} label="No users found." />
) : ( ) : (
list.items.map((u) => ( list.items.map((u) => (
<TR key={u.id}> <TR key={u.id}>
@@ -107,10 +106,14 @@ export default function UsersPage() {
</div> </div>
</TD> </TD>
<TD> <TD>
{u.email ?? <span className="text-muted-foreground">—</span>} <div className="space-y-1.5">
</TD> <div>
<TD> {u.email ?? (
<AuthIcons user={u} /> <span className="text-muted-foreground">—</span>
)}
</div>
<AuthIcons user={u} />
</div>
</TD> </TD>
<TD>{u.post_count}</TD> <TD>{u.post_count}</TD>
<TD className="whitespace-nowrap">{fmtDate(u.created_at)}</TD> <TD className="whitespace-nowrap">{fmtDate(u.created_at)}</TD>