Give username and password their own columns in the admin users dialog.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
armando 2026-09-16 04:26:57 -03:00
parent 5a355ce3cb
commit c1addaaf8e
2 changed files with 11 additions and 11 deletions

View File

@ -388,13 +388,13 @@ export default function PlatformClientesPage() {
</p> </p>
{usersError ? <p className="mt-3 text-sm text-red-300">{usersError}</p> : null} {usersError ? <p className="mt-3 text-sm text-red-300">{usersError}</p> : null}
<div className="mt-5 overflow-x-auto"> <div className="mt-5 overflow-x-auto">
<table className="w-full min-w-[36rem] table-fixed text-left text-sm"> <table className="w-full text-left text-sm">
<thead className="text-xs uppercase tracking-wider text-[#E8F4E5]/50"> <thead className="text-xs uppercase tracking-wider text-[#E8F4E5]/50">
<tr> <tr>
<th className="pb-3 font-medium">Nome</th> <th className="pb-3 pr-6 font-medium">Nome</th>
<th className="pb-3 font-medium">Usuário</th> <th className="pb-3 pr-6 font-medium">Usuário</th>
<th className="pb-3 font-medium">Senha</th> <th className="pb-3 pr-6 font-medium">Senha</th>
<th className="pb-3 font-medium">Papel</th> <th className="pb-3 pr-6 font-medium">Papel</th>
<th className="pb-3 font-medium" /> <th className="pb-3 font-medium" />
</tr> </tr>
</thead> </thead>
@ -408,11 +408,11 @@ export default function PlatformClientesPage() {
) : ( ) : (
users.map((user) => ( users.map((user) => (
<tr key={user.id} className="border-t border-white/10"> <tr key={user.id} className="border-t border-white/10">
<td className="py-3 pr-4 font-medium">{user.name}</td> <td className="py-3 pr-6 font-medium whitespace-nowrap">{user.name}</td>
<td className="py-3 pr-4 text-[#E8F4E5]/80">{user.email}</td> <td className="py-3 pr-6 text-[#E8F4E5]/80 whitespace-nowrap">{user.email}</td>
<td className="py-3 pr-4 font-mono text-[#82C85C]">{user.password || "-"}</td> <td className="py-3 pr-6 font-mono whitespace-nowrap text-[#82C85C]">{user.password || "-"}</td>
<td className="py-3 pr-4 text-[#E8F4E5]/70">{roleLabel[user.role]}</td> <td className="py-3 pr-6 whitespace-nowrap text-[#E8F4E5]/70">{roleLabel[user.role]}</td>
<td className="py-3"> <td className="py-3 whitespace-nowrap">
<button <button
className="text-xs text-[#E8F4E5]/70" className="text-xs text-[#E8F4E5]/70"
type="button" type="button"

View File

@ -64,7 +64,7 @@ export function Modal({
<div className="fixed inset-0 z-50 flex items-center justify-center bg-black/70 px-4" onClick={onClose}> <div className="fixed inset-0 z-50 flex items-center justify-center bg-black/70 px-4" onClick={onClose}>
<div <div
className={`max-h-[90dvh] w-full overflow-y-auto rounded-2xl border border-white/10 bg-black p-6 ${ className={`max-h-[90dvh] w-full overflow-y-auto rounded-2xl border border-white/10 bg-black p-6 ${
wide ? "max-w-3xl" : "max-w-md" wide ? "max-w-5xl" : "max-w-md"
}`} }`}
onClick={(event) => event.stopPropagation()} onClick={(event) => event.stopPropagation()}
> >