Format GraphQL variables

This commit is contained in:
Gregory Schier
2023-11-17 07:51:03 -08:00
parent bff6c668a0
commit 0401cb92aa
4 changed files with 11 additions and 7 deletions

View File

@@ -72,7 +72,7 @@ export function Dialog({
<span />
)}
{description && <p id={descriptionId}>{description}</p>}
<div className="h-full w-full">{children}</div>
<div className="h-full w-full grid grid-cols-[minmax(0,1fr)]">{children}</div>
{/*Put close at the end so that it's the last thing to be tabbed to*/}
{!hideX && (
<IconButton

View File

@@ -5,11 +5,12 @@ interface Props {
}
export function FormattedError({ children }: Props) {
console.log('ERROR', children);
return (
<pre
className={classNames(
'text-sm select-auto cursor-text bg-gray-100 p-3 rounded',
'whitespace-normal border border-red-500 border-dashed',
'w-full text-sm select-auto cursor-text bg-gray-100 p-3 rounded',
'whitespace-pre border border-red-500 border-dashed overflow-x-auto',
)}
>
{children}