From e5fc18fd9a16a0e32928b2d2b04c7d48d546c782 Mon Sep 17 00:00:00 2001 From: Innei Date: Mon, 7 Oct 2024 20:54:28 +0800 Subject: [PATCH] fix(ui): fetch error toast margin Signed-off-by: Innei --- apps/renderer/src/lib/error-parser.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/renderer/src/lib/error-parser.ts b/apps/renderer/src/lib/error-parser.ts index 88e4496777..bf7a46b280 100644 --- a/apps/renderer/src/lib/error-parser.ts +++ b/apps/renderer/src/lib/error-parser.ts @@ -59,7 +59,7 @@ export const toastFetchError = ( ..._toastOptions, classNames: { toast: "items-start bg-theme-background", - title: "-mt-1 mb-1", // to align with the icon (actually cut the top space from line-height) + title: tw`-mt-0.5`, // to align with the icon (actually cut the top space from line-height) content: "w-full", ..._toastOptions.classNames, }, @@ -85,7 +85,7 @@ export const toastFetchError = ( }), createElement(Markdown, { key: "reason", - className: "text-sm opacity-70 min-w-0 flex-1", + className: "text-sm opacity-70 min-w-0 flex-1 mt-1", children: _reason, }), ]),