forked from git.gladyson/openmonetis
style: padronizar dialogs e aplicar formatação Biome
DialogContent: padding p-6→p-10, max-w-lg→max-w-xl. DialogFooter/AlertDialogFooter: botões com flex-1 (largura igual). Remove gap-3/w-full redundantes de 12+ dialogs. Reformatação Biome: line wrapping, import ordering. Error component renomeado para evitar shadowing do global Error. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -394,7 +394,7 @@ export function AnticipateInstallmentsDialog({
|
||||
</div>
|
||||
)}
|
||||
|
||||
<DialogFooter className="gap-3">
|
||||
<DialogFooter>
|
||||
<Button
|
||||
type="button"
|
||||
variant="outline"
|
||||
|
||||
@@ -140,7 +140,7 @@ export function BulkActionDialog({
|
||||
</div>
|
||||
</RadioGroup>
|
||||
|
||||
<DialogFooter className="gap-2">
|
||||
<DialogFooter>
|
||||
<Button
|
||||
type="button"
|
||||
variant="outline"
|
||||
|
||||
@@ -185,9 +185,7 @@ export function LancamentoDetailsDialog({
|
||||
|
||||
<DialogFooter>
|
||||
<DialogClose asChild>
|
||||
<Button className="w-full" type="button">
|
||||
Entendi
|
||||
</Button>
|
||||
<Button type="button">Entendi</Button>
|
||||
</DialogClose>
|
||||
</DialogFooter>
|
||||
</CardContent>
|
||||
|
||||
@@ -504,9 +504,13 @@ const buildColumns = ({
|
||||
header: "Anotação",
|
||||
cell: ({ row }) => {
|
||||
const note = row.original.note;
|
||||
if (!note?.trim()) return <span className="text-muted-foreground">—</span>;
|
||||
if (!note?.trim())
|
||||
return <span className="text-muted-foreground">—</span>;
|
||||
return (
|
||||
<span className="max-w-[200px] truncate whitespace-pre-line text-sm" title={note}>
|
||||
<span
|
||||
className="max-w-[200px] truncate whitespace-pre-line text-sm"
|
||||
title={note}
|
||||
>
|
||||
{note}
|
||||
</span>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user