Generated by Spark: The X close button styling is a little dodge, it even overlaps other content.

This commit is contained in:
2026-01-17 19:09:26 +00:00
committed by GitHub
parent de1824e06d
commit a8f20992f1
4 changed files with 4 additions and 4 deletions

View File

@@ -81,7 +81,7 @@ Keep your response concise, friendly, and focused on practical solutions. Format
<Dialog open={open} onOpenChange={setOpen}>
<DialogContent className="max-w-2xl max-h-[80vh] overflow-hidden flex flex-col">
<DialogHeader>
<DialogHeader className="pr-8">
<DialogTitle className="flex items-center gap-2">
<Sparkle className="h-5 w-5 text-accent" weight="fill" />
AI Error Analysis

View File

@@ -123,7 +123,7 @@ export function SnippetDialog({ open, onOpenChange, onSave, editingSnippet }: Sn
return (
<Dialog open={open} onOpenChange={onOpenChange}>
<DialogContent className="sm:max-w-[900px] max-h-[90vh] overflow-hidden flex flex-col">
<DialogHeader>
<DialogHeader className="pr-8">
<DialogTitle className="text-2xl">
{editingSnippet?.id ? strings.snippetDialog.edit.title : strings.snippetDialog.create.title}
</DialogTitle>

View File

@@ -46,7 +46,7 @@ export function SnippetViewer({ snippet, open, onOpenChange, onEdit, onCopy }: S
return (
<Dialog open={open} onOpenChange={onOpenChange}>
<DialogContent className="sm:max-w-[95vw] sm:max-h-[95vh] h-[95vh] overflow-hidden flex flex-col p-0">
<DialogHeader className="px-6 pt-6 pb-4 border-b border-border">
<DialogHeader className="px-6 pt-6 pb-4 pr-14 border-b border-border">
<div className="flex items-start justify-between gap-4">
<div className="flex-1 min-w-0 space-y-2">
<div className="flex items-center gap-3">

View File

@@ -61,7 +61,7 @@ function DialogContent({
{...props}
>
{children}
<DialogPrimitive.Close className="ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4">
<DialogPrimitive.Close className="ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 z-10 rounded-sm opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4">
<XIcon />
<span className="sr-only">Close</span>
</DialogPrimitive.Close>