File tree Expand file tree Collapse file tree 1 file changed +11
-7
lines changed Expand file tree Collapse file tree 1 file changed +11
-7
lines changed Original file line number Diff line number Diff line change @@ -132,7 +132,7 @@ def ChatMessage(message):
132
132
elif message .role == "user" :
133
133
solara .Text (
134
134
message .content [0 ].text .value ,
135
- classes = ["chat-message" , "user-message" ],
135
+ classes = ["chat-message" , "chat- user-message" ],
136
136
)
137
137
elif message .role == "assistant" :
138
138
if message .content [0 ].text .value :
@@ -172,6 +172,16 @@ def ChatBox(children=[]):
172
172
# this uses a flexbox with column-reverse to reverse the order of the messages
173
173
# if we now also reverse the order of the messages, we get the correct order
174
174
# but the scroll position is at the bottom of the container automatically
175
+ solara .Style (
176
+ """
177
+ .chat-box > :last-child{
178
+ padding-top: 7.5vh;
179
+ }
180
+ .chat-user-message{
181
+ font-weight: bold;
182
+ }
183
+ """
184
+ )
175
185
solara .Column (
176
186
style = {
177
187
"flex-grow" : "1" ,
@@ -323,17 +333,11 @@ def Page():
323
333
width: 100%;
324
334
height: 15%;
325
335
}
326
- .chat-box > :last-child{
327
- padding-top: 7.5vh;
328
- }
329
336
.map-container{
330
337
width: 50vw;
331
338
height: 100%;
332
339
justify-content: center;
333
340
}
334
- .user-message{
335
- font-weight: bold;
336
- }
337
341
@media screen and (max-aspect-ratio: 1/1) {
338
342
.ui-container{
339
343
padding: 30px;
You can’t perform that action at this time.
0 commit comments