Skip to content

Commit

Permalink
fix(ui): fetch error toast margin
Browse files Browse the repository at this point in the history
Signed-off-by: Innei <[email protected]>
  • Loading branch information
Innei committed Oct 7, 2024
1 parent 066e9d4 commit e5fc18f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/renderer/src/lib/error-parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
Expand All @@ -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,
}),
]),
Expand Down

0 comments on commit e5fc18f

Please sign in to comment.