fix(ui): corrigir overflow do dialog e ícone de anexo nas categorias

Adiciona min-w-0 e overflow-x-hidden no DialogContent para evitar
expansão indevida; corrige referência do ícone RiAttachment2.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Felipe Coutinho
2026-03-28 15:13:13 +00:00
parent 00e624b8bc
commit a0a71623d7
3 changed files with 4 additions and 4 deletions

View File

@@ -23,7 +23,7 @@ export default function RootLayout({
return ( return (
<html <html
lang="pt-BR" lang="pt-BR"
className={`${america.variable} ${america.className}`} className={`${america.variable} ${america.className} `}
suppressHydrationWarning suppressHydrationWarning
> >
<head> <head>

View File

@@ -56,7 +56,7 @@ function DialogContent({
<DialogPrimitive.Content <DialogPrimitive.Content
data-slot="dialog-content" data-slot="dialog-content"
className={cn( className={cn(
"bg-background fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] max-h-[90vh] overflow-y-auto translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-4 shadow-lg sm:p-10 sm:max-w-xl", "bg-background fixed top-[50%] left-[50%] z-50 grid w-full min-w-0 max-w-[calc(100%-2rem)] max-h-[90vh] overflow-x-hidden overflow-y-auto translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-4 shadow-lg sm:p-10 sm:max-w-xl",
className, className,
)} )}
{...props} {...props}

View File

@@ -149,7 +149,7 @@ export const CATEGORY_ICON_OPTIONS: CategoryIconOption[] = [
{ label: "Chave", value: "RiKeyLine" }, { label: "Chave", value: "RiKeyLine" },
{ label: "Configurações", value: "RiSettings3Line" }, { label: "Configurações", value: "RiSettings3Line" },
{ label: "Link", value: "RiLinkLine" }, { label: "Link", value: "RiLinkLine" },
{ label: "Anexo", value: "RiAttachmentLine" }, { label: "Anexo", value: "RiAttachment2" },
{ label: "Download", value: "RiDownloadLine" }, { label: "Download", value: "RiDownloadLine" },
{ label: "Upload", value: "RiUploadLine" }, { label: "Upload", value: "RiUploadLine" },
{ label: "Nuvem Download", value: "RiCloudDownloadLine" }, { label: "Nuvem Download", value: "RiCloudDownloadLine" },
@@ -327,7 +327,7 @@ export const CATEGORY_ICON_GROUPS: CategoryIconGroup[] = [
{ label: "Chave", value: "RiKeyLine" }, { label: "Chave", value: "RiKeyLine" },
{ label: "Configurações", value: "RiSettings3Line" }, { label: "Configurações", value: "RiSettings3Line" },
{ label: "Link", value: "RiLinkLine" }, { label: "Link", value: "RiLinkLine" },
{ label: "Anexo", value: "RiAttachmentLine" }, { label: "Anexo", value: "RiAttachment2" },
{ label: "Download", value: "RiDownloadLine" }, { label: "Download", value: "RiDownloadLine" },
{ label: "Upload", value: "RiUploadLine" }, { label: "Upload", value: "RiUploadLine" },
{ label: "Nuvem Download", value: "RiCloudDownloadLine" }, { label: "Nuvem Download", value: "RiCloudDownloadLine" },