Skip to content

Commit 3b88457

Browse files
committed
chore: styling adjustments
1 parent 381fb76 commit 3b88457

File tree

6 files changed

+37
-12
lines changed

6 files changed

+37
-12
lines changed

examples/react-chatbot/app/layout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import type { Metadata } from 'next';
22

33
export const metadata: Metadata = {
4-
title: 'Create Next App',
4+
title: 'Stream AI Components React Chatbot Demo',
55
description: 'AI Chat demo with Stream AI Components',
66
};
77

examples/react-chatbot/components/MessageInputBar/MessageInputBar.scss

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
}
1414

1515
.aicr__ai-message-composer__form {
16-
background-color: var(--ai-demo-bg-tertiary);
16+
background-color: var(--ai-demo-bg-secondary);
1717
border: 1px solid var(--ai-demo-border);
1818
border-radius: 24px;
1919
padding: 0.75rem 1rem;
@@ -22,7 +22,6 @@
2222

2323
&:focus-within {
2424
border-color: var(--ai-demo-accent);
25-
background-color: var(--ai-demo-bg-tertiary);
2625
box-shadow: 0 0 0 1px rgba(16, 163, 127, 0.2);
2726
}
2827
}
@@ -52,7 +51,6 @@
5251
}
5352

5453
.aicr__ai-message-composer__select {
55-
background-color: var(--ai-demo-bg-tertiary);
5654
color: var(--ai-demo-text-primary);
5755
border-color: var(--ai-demo-border);
5856
border-radius: 8px;
@@ -63,15 +61,13 @@
6361
transition: all 0.2s ease;
6462

6563
&:hover {
66-
background-color: var(--ai-demo-bg-tertiary);
6764
border-color: var(--ai-demo-accent);
6865
}
6966

7067
&:focus {
7168
outline: none;
7269
border-color: var(--ai-demo-accent);
7370
box-shadow: 0 0 0 1px rgba(16, 163, 127, 0.2);
74-
background-color: var(--ai-demo-bg-tertiary);
7571
}
7672

7773
option {

examples/react-chatbot/components/Sidebar/Sidebar.scss

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,32 @@
4545
}
4646
}
4747

48+
.str-chat__load-more-button {
49+
padding: 0 1rem;
50+
51+
.str-chat__load-more-button__button {
52+
width: 100%;
53+
padding: 0.75rem 1rem;
54+
border: 1px solid var(--ai-demo-border);
55+
border-radius: 8px;
56+
background-color: transparent;
57+
color: var(--ai-demo-text-primary);
58+
font-family: var(--ai-demo-font-family);
59+
font-size: 0.875rem;
60+
font-weight: 500;
61+
cursor: pointer;
62+
transition: background-color 0.2s ease;
63+
64+
&:hover {
65+
background-color: var(--ai-demo-bg-tertiary);
66+
}
67+
68+
&:active {
69+
background-color: var(--ai-demo-border);
70+
}
71+
}
72+
}
73+
4874
.ai-demo-sidebar-backdrop {
4975
display: none;
5076

examples/react-chatbot/components/index.scss

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,9 @@
4747
padding: 0;
4848

4949
/* Font */
50-
--ai-demo-font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
50+
--ai-demo-font-family:
51+
-apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica',
52+
'Arial', sans-serif;
5153

5254
font-family: var(--ai-demo-font-family);
5355
line-height: 1.5;
@@ -78,7 +80,7 @@
7880
--ai-demo-ai-bg: transparent;
7981

8082
/* Accent colors */
81-
--ai-demo-accent: #10a37f;
83+
--ai-demo-accent: #005fff;
8284
--ai-demo-accent-hover: #0d8968;
8385

8486
color-scheme: dark;
@@ -104,7 +106,7 @@
104106
--ai-demo-ai-bg: transparent;
105107

106108
/* Accent colors */
107-
--ai-demo-accent: #10a37f;
109+
--ai-demo-accent: #005fff;
108110
--ai-demo-accent-hover: #0d8968;
109111

110112
color-scheme: light;

packages/react-sdk/src/components/composer/ai-message-composer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,7 @@ const ModelSelect = (
381381
return (
382382
<select
383383
className="aicr__ai-message-composer__select"
384-
defaultValue="gpt-4o"
384+
defaultValue="gpt-5"
385385
{...restProps}
386386
>
387387
{options}

packages/react-sdk/src/styles/ai-message-composer.scss

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,13 +49,14 @@
4949
font-size: 14px;
5050
border: 1px solid #ccc;
5151
border-radius: 0.5rem;
52-
padding: 0.25rem 1rem 0.25rem 0.25rem;
52+
padding: 0.5rem 1.25rem 0.5rem 1rem;
5353

5454
background-color: transparent;
5555
background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' version='1.1' height='10px' width='15px'%3E%3Ctext x='0' y='10' fill='black'%3E%E2%96%BE%3C/text%3E%3C/svg%3E");
5656
background-repeat: no-repeat;
5757
background-size: 0.75rem 0.75rem;
58-
background-position: right center;
58+
background-position-x: calc(100% - 5px);
59+
background-position-y: center;
5960
background-clip: border-box;
6061
}
6162
}

0 commit comments

Comments
 (0)