Skip to content

Commit 711c4bb

Browse files
authored
feat: styles for ai chatbot components (#320)
1 parent 7f592fb commit 711c4bb

File tree

7 files changed

+29
-4
lines changed

7 files changed

+29
-4
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.str-chat__ai-state-indicator-container {
2+
padding: 0 8px;
3+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
.str-chat__ai-state-indicator-container {
2+
background-color: var(--str-chat__grey300);
3+
}
4+
5+
.str-chat__ai-state-indicator-text {
6+
color: var(--str-chat__text-color);
7+
}

src/v2/styles/MessageInput/MessageInput-layout.scss

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,12 @@
129129
width: 100%;
130130
}
131131

132+
.str-chat__stop-ai-generation-button {
133+
width: calc(var(--str-chat__spacing-px) * 30);
134+
height: calc(var(--str-chat__spacing-px) * 28);
135+
cursor: pointer;
136+
}
137+
132138
.str-chat__send-button {
133139
--str-chat-icon-height: calc(var(--str-chat__spacing-px) * 32);
134140
@include utils.flex-row-center;
@@ -240,4 +246,4 @@
240246
.str-chat__attachment-selector-actions-menu {
241247
min-width: 300px;
242248
padding-block: 0.5rem;
243-
}
249+
}

src/v2/styles/MessageInput/MessageInput-theme.scss

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -168,10 +168,10 @@
168168

169169
/* Box shadow applied to the cooldown timer */
170170
--str-chat__cooldown-box-shadow: none;
171-
171+
172172
/* Color applied to an icon in a button that opens attachment selector */
173173
--str-chat__attachment-selector-button-icon-color: var(--str-chat__text-low-emphasis-color);
174-
174+
175175
/* Color applied to an icon in a button that opens attachment selector when hovered over */
176176
--str-chat__attachment-selector-button-icon-color-hover: var(--str-chat__primary-color);
177177

@@ -221,6 +221,12 @@
221221
}
222222
}
223223

224+
.str-chat__stop-ai-generation-button {
225+
background-image: var(--str-chat__circle-stop-icon);
226+
background-color: transparent;
227+
border-width: 0;
228+
}
229+
224230
.str-chat__send-button {
225231
--str-chat-icon-color: var(--str-chat__message-send-color);
226232
@include utils.component-layer-overrides('message-send');
@@ -342,4 +348,4 @@
342348
mask: var(--str-chat__poll-icon) no-repeat center / contain;
343349
}
344350
}
345-
}
351+
}

src/v2/styles/_icons.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
--str-chat__folder-icon: url('data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMjAgMTYiIGZpbGw9ImN1cnJlbnRDb2xvciIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICAgIDxwYXRoIGQ9Ik0xOCAySDEwTDggMEgyQzAuOSAwIDAuMDA5OTk5OTkgMC45IDAuMDA5OTk5OTkgMkwwIDE0QzAgMTUuMSAwLjkgMTYgMiAxNkgxOEMxOS4xIDE2IDIwIDE1LjEgMjAgMTRWNEMyMCAyLjkgMTkuMSAyIDE4IDJaTTE4IDE0SDJWNEgxOFYxNFoiIC8+Cjwvc3ZnPgo=');
1010
--str-chat__poll-icon: url('data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMTggMTgiIGZpbGw9ImN1cnJlbnRDb2xvciIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICAgIDxwYXRoIGQ9Ik0xNiAwSDJDMC45IDAgMCAwLjkgMCAyVjE2QzAgMTcuMSAwLjkgMTggMiAxOEgxNkMxNy4xIDE4IDE4IDE3LjEgMTggMTZWMkMxOCAwLjkgMTcuMSAwIDE2IDBaTTE2IDE2SDJWMkgxNlYxNlpNNCA3SDZWMTRINFY3Wk04IDRIMTBWMTRIOFY0Wk0xMiAxMEgxNFYxNEgxMlYxMFoiLz4KPC9zdmc+');
1111
--str-chat__handle-icon: url('data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMTY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xMy41MjIxQzEyLjgzNTkgMTEuOTI2NCAxMi40MTU0IDEyLjMyNDkgMTIuNDE1NCAxMy4wMTExVjE4Ljg5OTFDMTIuNDE1NCAxOS41NzQyIDEyLjgzNTkgMTkuOTgzNyAxMy41MjIxIDE5Ljk4MzdaIiBmaWxsPSIjMDA1ZmZmIi8+Cjwvc3ZnPg==');
1213
}
1314

1415
@font-face {

src/v2/styles/index.layout.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,3 +43,4 @@
4343
@use 'ThreadList/ThreadList-layout';
4444
@use 'ChatView/ChatView-layout';
4545
@use 'UnreadCountBadge/UnreadCountBadge-layout';
46+
@use 'AIStateIndicator/AIStateIndicator-layout';

src/v2/styles/index.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,4 @@
4444
@use 'ThreadList/ThreadList-theme';
4545
@use 'ChatView/ChatView-theme';
4646
@use 'UnreadCountBadge/UnreadCountBadge-theme';
47+
@use 'AIStateIndicator/AIStateIndicator-theme';

0 commit comments

Comments
 (0)