Skip to content

Commit 03bf914

Browse files
authored
fix-dialog-remove-borders-system-asst (#11376)
* fix(dialog): remove redundant borders and enable textarea overflow hidden * fix(dialog): treat System messages as assistant
1 parent c85be5d commit 03bf914

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

apps/desktop/src/components/DialogBubble.svelte

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,16 @@
3131
class="bubble-wrap"
3232
class:editing
3333
class:bubble-wrap_user={role === MessageRole.User}
34-
class:bubble-wrap_assistant={role === MessageRole.Assistant}
34+
class:bubble-wrap_assistant={role === MessageRole.Assistant || role === MessageRole.System}
3535
>
3636
<div class="bubble">
3737
<div class="bubble__header text-13 text-bold">
3838
{#if role === MessageRole.User}
3939
<Icon name="profile" />
4040
<span>User</span>
41+
{:else if role === MessageRole.System}
42+
<Icon name="robot" />
43+
<span>System</span>
4144
{:else}
4245
<Icon name="robot" />
4346
<span>Assistant</span>
@@ -93,7 +96,6 @@
9396
.bubble {
9497
width: 100%;
9598
max-width: 90%;
96-
/* overflow: hidden; */
9799
}
98100
99101
.bubble-wrap_user {
@@ -119,8 +121,6 @@
119121
align-items: center;
120122
padding: 12px;
121123
gap: 8px;
122-
/* border: 1px solid var(--clr-border-2); */
123-
124124
border-bottom: none;
125125
border-radius: var(--radius-l) var(--radius-l) 0 0;
126126
}
@@ -129,8 +129,6 @@
129129
padding: 12px;
130130
overflow-x: auto;
131131
border-top: 1px solid var(--clr-border-2);
132-
/* border: 1px solid var(--clr-border-2); */
133-
134132
border-radius: 0 0 var(--radius-l) var(--radius-l);
135133
color: var(--clr-text-1);
136134
}
@@ -145,6 +143,7 @@
145143
146144
.textarea {
147145
width: 100%;
146+
overflow: hidden;
148147
border: 1px solid var(--clr-border-2);
149148
border-radius: 0 0 var(--radius-l) var(--radius-l);
150149
background-color: var(--clr-bg-1);

0 commit comments

Comments
 (0)