Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

added styling fixes for error message displaying

TzeYiing12073cb9ab11
diff --git a/studio/pages/project/[ref]/settings/logs/[type].tsx b/studio/pages/project/[ref]/settings/logs/[type].tsx
index 620e21ef18e..1c711e7c8c6 100644
--- a/studio/pages/project/[ref]/settings/logs/[type].tsx
+++ b/studio/pages/project/[ref]/settings/logs/[type].tsx
@@ -12,6 +12,7 @@ import {
IconInfo,
Card,
Loading,
+ Input,
} from '@supabase/ui'
import { withAuth } from 'hooks'
@@ -329,21 +330,19 @@ export const LogPage: NextPage = () => {
{error && (
<div className="flex w-full h-full justify-center items-center mx-auto">
- <Card className="flex flex-col gap-y-2 w-1/3">
+ <Card className="flex flex-col gap-y-2 w-2/5 bg-scale-400">
<div className="flex flex-row gap-x-2 py-2">
<IconAlertCircle size={16} />
<Typography.Text type="secondary">
Sorry! An error occured when fetching data.
</Typography.Text>
</div>
- <details className="cursor-pointer">
- <summary>
- <Typography.Text type="secondary">Error Message</Typography.Text>
- </summary>
- <Typography.Text className="block whitespace-pre-wrap" small code type="warning">
- {JSON.stringify(error, null, 2)}
- </Typography.Text>
- </details>
+ <Input.TextArea
+ label="Error Messages"
+ value={JSON.stringify(error, null, 2)}
+ borderless
+ className=" border-t-2 border-scale-800 pt-2 font-mono"
+ />
</Card>
</div>
)}