Skip to content

Commit

Permalink
fix(ui): weird rendering when chats have long text
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcMcIntosh committed Dec 26, 2023
1 parent b7bd311 commit 4e1d37d
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { Flex } from "@radix-ui/themes";
import { Chat } from "./features/Chat";
import { useEventBusForHost } from "./hooks/useEventBusForHost";
import { HistorySideBar } from "./features/HistorySideBar";
import { PageWrapper } from "./components/PageWrapper";
import { Theme } from "./components/Theme";
import "./App.css";

Expand All @@ -12,9 +11,9 @@ function App() {
<Theme>
<Flex>
<HistorySideBar />
<PageWrapper>
<Chat />
</PageWrapper>
{/* <PageWrapper> */}
<Chat />
{/* </PageWrapper> */}
</Flex>
</Theme>
);
Expand Down
1 change: 1 addition & 0 deletions src/components/PageWrapper/index.tsx
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
// TODO: delete this, it's done it's job
export { PageWrapper } from "./PageWrapper";
11 changes: 11 additions & 0 deletions src/features/Chat.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,17 @@ export const Chat: React.FC = () => {
direction="column"
justify="between"
grow="1"
p={{
initial: "9",
// initial: "5",
// xs: "6",
// sm: "7",
// md: "9"
}}
style={{
height: "100dvh",
maxWidth: "calc(100vw - 260px)", // TODO: host this as the side bar won't always be there
}}
// width="100%"
>
<ChatContent
Expand Down

0 comments on commit 4e1d37d

Please sign in to comment.