File tree Expand file tree Collapse file tree 1 file changed +2
-10
lines changed
src/packages/frontend/chat Expand file tree Collapse file tree 1 file changed +2
-10
lines changed Original file line number Diff line number Diff line change @@ -374,7 +374,7 @@ export default function Message(props: Readonly<Props>) {
374
374
}
375
375
376
376
function contentColumn ( ) {
377
- let borderRadius , marginBottom , marginTop : any ;
377
+ let marginBottom , marginTop ;
378
378
let value = newest_content ( message ) ;
379
379
380
380
const { background, color, lighten, message_class } = message_colors (
@@ -396,21 +396,13 @@ export default function Message(props: Readonly<Props>) {
396
396
marginTop = "5px" ;
397
397
}
398
398
399
- if ( ! props . is_prev_sender && ! props . is_next_sender && ! show_history ) {
400
- borderRadius = "10px 10px 10px 10px" ;
401
- } else if ( ! props . is_prev_sender ) {
402
- borderRadius = "10px 10px 5px 5px" ;
403
- } else if ( ! props . is_next_sender ) {
404
- borderRadius = "5px 5px 10px 10px" ;
405
- }
406
-
407
399
const message_style : CSSProperties = {
408
400
color,
409
401
background,
410
402
wordWrap : "break-word" ,
403
+ borderRadius : "5px" ,
411
404
marginBottom,
412
405
marginTop,
413
- borderRadius,
414
406
fontSize : font_size ,
415
407
padding : selected ? "6px" : "9px" ,
416
408
...( mode === "sidechat"
You can’t perform that action at this time.
0 commit comments