Skip to content

Commit

Permalink
small UI fix
Browse files Browse the repository at this point in the history
  • Loading branch information
vwh committed Jul 28, 2024
1 parent c1d893d commit 90e0f9c
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
4 changes: 3 additions & 1 deletion src/components/dropzone.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,9 @@ export default function UploadFile() {

const renderDropzoneContent = useCallback(
(hasDatabase: boolean) => (
<div className="flex h-full items-center justify-center gap-2">
<div
className={`flex h-full items-center justify-center gap-2 ${hasDatabase ? "px-[10px]" : "px-0"}`}
>
<div
{...getRootProps()}
className={`flex h-full grow cursor-pointer flex-col items-center justify-center rounded border p-6 text-center ${
Expand Down
4 changes: 2 additions & 2 deletions src/components/error.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ export default function ErrorMessage({
children: React.ReactNode;
}) {
return (
<div className="flex items-center justify-center gap-5 rounded border p-4 font-semibold">
<div className="flex items-center justify-center gap-4 rounded border p-4">
<AlertTriangleIcon className="h-6 w-6" />
{children}
<span className="font-semibold">{children}</span>
</div>
);
}
4 changes: 2 additions & 2 deletions src/components/loading.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ import { LoaderIcon } from "lucide-react";

export default function Loading({ children }: { children: React.ReactNode }) {
return (
<div className="flex items-center justify-center gap-5 rounded border p-4 font-semibold">
<div className="flex items-center justify-center gap-4 rounded border p-4">
<LoaderIcon className="h-6 w-6 animate-spin" />
<span className="ml-2 font-semibold">{children}</span>
<span className="font-semibold">{children}</span>
</div>
);
}
2 changes: 1 addition & 1 deletion src/components/settings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ export default function Settings() {
<p className="mb-1 text-sm text-muted-foreground">
Query History
</p>
<ScrollArea className="h-72 rounded-md border">
<ScrollArea className="h-48 rounded-md border">
<div className="p-4">
{queryHestory.map((query, index) => (
<>
Expand Down

0 comments on commit 90e0f9c

Please sign in to comment.