Skip to content

Commit c70f788

Browse files
committed
fix ui msgcontent xs width
1 parent dc90101 commit c70f788

File tree

4 files changed

+19
-3
lines changed

4 files changed

+19
-3
lines changed

.phylum_project

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
id: dae748f8-8b26-4d87-8cd5-e9d7999fd24c
2+
name: markybot
3+
created_at: 2023-09-01T13:29:58.247453716+08:00
4+
group_name: null
5+
lockfiles:
6+
- path: ./pnpm-lock.yaml
7+
type: pnpm

src/components/chat.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -75,14 +75,14 @@ export default function Chat() {
7575
</CardHeader>
7676
</Card>
7777
) : (
78-
<ScrollArea className="mx-auto w-full max-w-md py-5 flex flex-col h-[30rem] bg-gradient-to-br from-pink-700 to-violet-700 rounded">
78+
<ScrollArea className="mx-auto w-full max-w-md py-5 px-2 md:px-5 flex flex-col h-[30rem] bg-gradient-to-br from-pink-700 to-violet-700 rounded">
7979
{messages.map((m) => {
8080
const colorClassName =
8181
m.role === "user" ? "bg-sky-600" : "bg-slate-50 text-black";
8282
return (
8383
<div
8484
key={m.id}
85-
className={`${colorClassName} rounded-md mb-5 p-2 w-[25rem] mx-auto`}
85+
className={`${colorClassName} rounded-md mb-5 p-2 mx-auto`}
8686
>
8787
{m.role === "user" ? "🧑 " : "🤖 "}
8888
<MemoizedReactMarkdown

tsconfig.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"noEmit": true,
1010
"esModuleInterop": true,
1111
"module": "esnext",
12-
"moduleResolution": "bundler",
12+
"moduleResolution": "node",
1313
"resolveJsonModule": true,
1414
"isolatedModules": true,
1515
"jsx": "preserve",

turbo.json

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"$schema": "https://turbo.build/schema.json",
3+
"pipeline": {
4+
"build": {
5+
"outputs": [".next/**", "!.next/cache/**"]
6+
},
7+
"lint": {}
8+
}
9+
}

0 commit comments

Comments
 (0)