Skip to content

Commit 4c4ced2

Browse files
authored
Merge pull request #95 from Firefox-AI/smart-window-chat-styling
Update chat message styling
2 parents 72d3d26 + fe8f537 commit 4c4ced2

File tree

2 files changed

+22
-8
lines changed

2 files changed

+22
-8
lines changed

browser/components/smartwindow/content/chat.mjs

Lines changed: 21 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -109,9 +109,21 @@ class ChatBot extends MozLitElement {
109109
}
110110
111111
.message {
112-
padding: 0.75rem;
113-
border-radius: 10px;
112+
display: flex;
113+
flex-direction: column;
114+
gap: var(--space-large);
114115
line-height: 1.4;
116+
padding: 0.75rem 1rem;
117+
}
118+
119+
.message .message-body > *:first-child {
120+
margin-block-start: 0;
121+
padding-block-start: 0;
122+
}
123+
124+
.message .message-body > *:last-child {
125+
margin-block-end: 0;
126+
padding-block-end: 0;
115127
}
116128
117129
.message-title {
@@ -120,13 +132,15 @@ class ChatBot extends MozLitElement {
120132
121133
.user {
122134
align-self: flex-end;
123-
background-color: #f0f0f0;
124-
min-width: 200px;
135+
border-radius: 12px;
136+
border: 1px solid rgba(189, 137, 213, 0.30);
137+
background: rgba(255, 255, 255, 0.75);
138+
box-shadow: var(--box-shadow-level-2-shadow-1-x, 0) var(--box-shadow-level-2-shadow-1-y, 0.25px) var(--box-shadow-level-2-shadow-1-blur, 0.75px) var(--box-shadow-level-2-shadow-1-spread, 0) var(--box-shadow-level-2-shadow-1-color, rgba(0, 0, 0, 0.05)), var(--box-shadow-level-2-shadow-2-x, 0) var(--box-shadow-level-2-shadow-2-y, 2px) var(--box-shadow-level-2-shadow-2-blur, 6px) var(--box-shadow-level-2-shadow-2-spread, 0) var(--box-shadow-level-2-shadow-2-color, rgba(0, 0, 0, 0.10));
125139
}
126140
127141
.assistant {
128142
align-self: flex-start;
129-
border: 1px solid #d8d8d8;
143+
border-left: 2px solid #d6b4fd;
130144
ul {
131145
display: block;
132146
}
@@ -177,7 +191,7 @@ class ChatBot extends MozLitElement {
177191
.history-overlay-section {
178192
display: flex;
179193
flex-direction: column;
180-
gap: var(--space-xsmall);
194+
gap: var(--space-small);
181195
}
182196
183197
.history-overlay-actions {
@@ -191,7 +205,7 @@ class ChatBot extends MozLitElement {
191205
display: inline-flex;
192206
font-size: 13px;
193207
font-weight: 600;
194-
gap: var(--space-xsmall);
208+
gap: var(--space-small);
195209
}
196210
197211
button.history-overlay-button {

browser/components/smartwindow/content/smartwindow.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -647,7 +647,7 @@ body {
647647
.quick-prompts-container {
648648
width: calc(100% - 40px); /* Account for container padding */
649649
max-width: 700px;
650-
margin: 20px auto;
650+
margin: var(--space-medium) auto;
651651
display: flex;
652652
flex-wrap: wrap;
653653
justify-content: center;

0 commit comments

Comments
 (0)