Skip to content

Commit e9635e9

Browse files
committed
style: adjust chat styles
1 parent 09cff9e commit e9635e9

3 files changed

Lines changed: 5 additions & 37 deletions

File tree

‎src/app/domains/shared/ui-assistant/assistant-chat/assistant-chat.css‎

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -159,18 +159,14 @@
159159
border-radius: var(--radius);
160160
padding: 12px 14px;
161161
background: var(--assistant);
162-
line-height: 1.4;
162+
font-size: var(--font-size-sm);
163+
line-height: 1.35;
163164
overflow-wrap: anywhere;
164165
white-space: normal;
165166
max-width: 100%;
166167
width: fit-content;
167168
}
168169

169-
:host ::ng-deep .bubble app-message {
170-
font-size: var(--font-size-sm);
171-
line-height: 1.35;
172-
}
173-
174170
:host ::ng-deep .msg.user .bubble {
175171
background: var(--assistant);
176172
color: var(--text);

‎src/app/domains/shared/ui-assistant/chat-messages/chat-messages.css‎

Lines changed: 2 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55
.bubble {
66
display: flex;
77
flex-direction: column;
8-
<<<<<<< HEAD
9-
<<<<<<< HEAD
108
gap: 10px;
119
}
1210

@@ -26,42 +24,16 @@
2624
gap: 6px;
2725
padding: 0;
2826
width: fit-content;
29-
font-size: 11px;
27+
font-size: calc(var(--font-size-sm) - 1pt);
3028
line-height: 1.2;
3129
}
3230

3331
.tool-call-label {
34-
font-size: 11px;
32+
font-size: calc(var(--font-size-sm) - 1pt);
3533
line-height: 1.2;
3634
}
3735

3836
app-widget-container {
3937
display: block;
4038
margin: 0;
41-
=======
42-
gap: 12px;
43-
=======
44-
gap: 10px;
45-
>>>>>>> 88a5fc6 (style: adjust chat style to new design)
46-
}
47-
48-
.tool-call {
49-
display: flex;
50-
align-items: center;
51-
gap: 6px;
52-
padding: 0;
53-
width: fit-content;
54-
}
55-
56-
.tool-call app-message {
57-
font-size: 11px;
58-
}
59-
60-
app-widget-container {
61-
display: block;
62-
<<<<<<< HEAD
63-
>>>>>>> 8c1c217 (refactor: rename events used in event api example)
64-
=======
65-
margin: 0;
66-
>>>>>>> 88a5fc6 (style: adjust chat style to new design)
6739
}

‎src/app/domains/shared/ui-assistant/chat-messages/chat-messages.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export class ChatMessages {
3636
error: '⚡️',
3737
};
3838

39-
private hasContent(message: UiChatMessage): boolean {
39+
private hasContent(message: AgUiChatMessage): boolean {
4040
const content = message.content as unknown;
4141

4242
if (content == null) {

0 commit comments

Comments
 (0)