Skip to content

Commit

Permalink
fix phone layout
Browse files Browse the repository at this point in the history
  • Loading branch information
yxshv committed Apr 13, 2024
1 parent d501c47 commit 82ce1cf
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions apps/web/src/components/Main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,8 @@ export default function Main({ sidebarOpen }: { sidebarOpen: boolean }) {
askQuestion={onSend}
setValue={setValue}
value={value}
selectedSpaces={selectedSpaces}
setSelectedSpaces={setSelectedSpaces}
/>
) : (
<main
Expand Down Expand Up @@ -342,13 +344,17 @@ export function Chat({
askQuestion,
setValue,
value,
selectedSpaces,
setSelectedSpaces
}: {
sidebarOpen: boolean;
isLoading?: boolean;
chatHistory: ChatHistory[];
askQuestion: () => void;
setValue: (value: string) => void;
value: string;
selectedSpaces: number[];
setSelectedSpaces: React.Dispatch<React.SetStateAction<number[]>>;
}) {
const textArea = useRef<HTMLDivElement>(null);

Expand Down Expand Up @@ -384,7 +390,7 @@ export function Chat({
data-sidebar-open={sidebarOpen}
className="absolute flex w-full items-center justify-center"
>
<div className="animate-from-top fixed bottom-10 mt-auto flex w-[50%] flex-col items-start justify-center gap-2">
<div className="animate-from-top fixed bottom-10 left-1/2 -translate-x-1/2 mt-auto flex w-[90%] md:w-[50%] flex-col items-start justify-center gap-2">
<FilterSpaces
name={"Filter"}
onClose={() => {
Expand All @@ -393,9 +399,8 @@ export function Chat({
side="top"
align="start"
className="bg-[#252525]"
// TODO: SPACES FILTER HERE
selectedSpaces={[]}
setSelectedSpaces={(spaces) => {}}
selectedSpaces={selectedSpaces}
setSelectedSpaces={setSelectedSpaces}
/>
<Textarea2
ref={textArea}
Expand Down

0 comments on commit 82ce1cf

Please sign in to comment.