diff --git a/apps/web/app/(dash)/chat/chatQueryInput.tsx b/apps/web/app/(dash)/chat/chatQueryInput.tsx
index c7267298..62dd9668 100644
--- a/apps/web/app/(dash)/chat/chatQueryInput.tsx
+++ b/apps/web/app/(dash)/chat/chatQueryInput.tsx
@@ -116,6 +116,8 @@ function QueryInput({
@@ -146,10 +148,7 @@ function QueryInput({
]);
setSelectedSpaces((prev) => [...prev, creationTask.data!]);
} else {
- toast.error(
- "Space creation failed: " + creationTask.error ??
- "Unknown error",
- );
+ toast.error("Space creation failed: " + creationTask.error);
}
}}
placeholder="Chat with a space..."
diff --git a/packages/ui/shadcn/combobox.tsx b/packages/ui/shadcn/combobox.tsx
index 7ebb1ef4..27b67152 100644
--- a/packages/ui/shadcn/combobox.tsx
+++ b/packages/ui/shadcn/combobox.tsx
@@ -9,6 +9,7 @@ import {
CommandItem,
CommandList,
} from "./command";
+import { cn } from "../lib/utils";
interface Option {
value: string;
@@ -21,6 +22,8 @@ interface ComboboxWithCreateProps {
onSubmit: (newName: string) => void;
selectedSpaces: number[];
setSelectedSpaces: React.Dispatch>;
+ className?: string;
+ placeholder?: string;
}
const ComboboxWithCreate = ({
@@ -29,6 +32,8 @@ const ComboboxWithCreate = ({
onSubmit,
selectedSpaces,
setSelectedSpaces,
+ className,
+ placeholder,
}: ComboboxWithCreateProps) => {
const [inputValue, setInputValue] = useState("");
@@ -52,7 +57,10 @@ const ComboboxWithCreate = ({
return (
0 && "p-2"} transition-all mt-4 mb-4`}
+ className={cn(
+ `group flex bg-[#2F353C] h-min rounded-md ${selectedSpaces.length > 0 && "p-2"} transition-all mt-4 mb-4`,
+ className,
+ )}
>
{selectedSpaces.map((spaceId) => (
@@ -73,10 +81,12 @@ const ComboboxWithCreate = ({
- 0 ?"translate-y-20": "translate-y-12"}`}>
+ 0 ? "translate-y-20" : "translate-y-12"}`}
+ >
{filteredOptions.map((option) => (