Skip to content

Commit c3bfc21

Browse files
authored
fix: ai chat responsive width (#82)
1 parent 5ac1622 commit c3bfc21

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

src/playground/src/App.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ const Main: React.FC = (): JSX.Element => {
6767
return (
6868
<main>
6969
<Header />
70-
<div>
70+
<div id="ai-chat">
7171
<BitteAiChat
7272
options={{
7373
agentImage: bitteAgent.image,

src/playground/src/index.css

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,17 @@
11
@import "tailwindcss";
22

3-
main > div {
4-
width: 700px;
5-
3+
#ai-chat {
4+
width: 100%;
65
margin: 0 auto;
76
height: 540px;
87
}
98

9+
@media (min-width: 768px) {
10+
#ai-chat {
11+
width: 700px;
12+
}
13+
}
14+
1015
body {
1116
background-color: #242424;
1217
}

0 commit comments

Comments
 (0)