Skip to content

Commit

Permalink
fix: fix error message styles (#45)
Browse files Browse the repository at this point in the history
  • Loading branch information
amareshsm authored Sep 20, 2024
1 parent 1c9c90a commit 4601b21
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ function App() {
}}
/>
<div className="bg-foreground/5 overflow-auto h-[70dvh] sm:h-full relative flex flex-col">
<div className="flex sm:items-center flex-col sm:flex-row justify-between p-4 gap-2 z-10">
<div className="flex sm:items-center flex-col sm:flex-row justify-between p-4 gap-2 z-10 border-b">
<ToolSelector />
<div className="flex items-center gap-1">
{activeTool.options.map(
Expand Down
6 changes: 4 additions & 2 deletions src/components/error-boundary.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,10 @@ export const withErrorBoundary = (Children: FC) => {

export const ErrorState = ({ message }: { message: string }) => {
return (
<div className="bg-red-50 -mt-[72px] pt-[72px] h-full">
<div className="p-4 text-red-700">{message}</div>
<div className="bg-red-50 dark:bg-gray-800 pl-1.5 pt-1.5 h-full">
<div className="p-4 text-red-600 dark:text-red-400">
Error: {message}
</div>
</div>
);
};
6 changes: 4 additions & 2 deletions src/components/path/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,10 @@ export const CodePath: FC = () => {

if (error) {
return (
<div className="bg-red-50 -mt-[72px] pt-[72px] h-full">
<div className="p-4 text-red-700">{error}</div>
<div className="bg-red-50 dark:bg-gray-900 pl-1.5 pt-1.5 h-full">
<div className="p-4 text-red-600 dark:text-red-400">
Error: {error}
</div>
</div>
);
}
Expand Down

0 comments on commit 4601b21

Please sign in to comment.