File tree 2 files changed +5
-10
lines changed
2 files changed +5
-10
lines changed Original file line number Diff line number Diff line change @@ -264,6 +264,7 @@ Chatbox {
264
264
}
265
265
266
266
& .assistant-message {
267
+ width : 1fr ;
267
268
border : round $accent 60% ;
268
269
& :focus-within {
269
270
border : round $accent ;
@@ -296,6 +297,9 @@ Chatbox {
296
297
background : $main-lighten-2 ;
297
298
}
298
299
}
300
+ & TextArea {
301
+ width : 1fr ;
302
+ }
299
303
}
300
304
301
305
}
Original file line number Diff line number Diff line change @@ -136,7 +136,7 @@ def action_copy_to_clipboard(self) -> None:
136
136
text_to_copy = self .selected_text
137
137
138
138
if text_to_copy :
139
- message = f"Copied { len (text_to_copy )} selected characters to clipboard."
139
+ message = f"Copied { len (text_to_copy )} characters to clipboard."
140
140
title = "Selection copied"
141
141
else :
142
142
text_to_copy = self .text
@@ -381,15 +381,6 @@ def render(self) -> RenderableType:
381
381
return ""
382
382
return self .markdown
383
383
384
- def get_content_width (self , container : Size , viewport : Size ) -> int :
385
- # Naive approach. Can sometimes look strange, but works well enough.
386
- content = self .message .message .get ("content" )
387
- if isinstance (content , str ):
388
- content_width = min (cell_len (content ), container .width )
389
- else :
390
- content_width = 10 # Arbitrary
391
- return content_width
392
-
393
384
def append_chunk (self , chunk : str ) -> None :
394
385
"""Append a chunk of text to the end of the message."""
395
386
content = self .message .message .get ("content" )
You can’t perform that action at this time.
0 commit comments