Skip to content

Commit 5d573e2

Browse files
committed
chat: get rid of weird borders, which make no sense because of threads, and also the messages not touching
1 parent 2c38aec commit 5d573e2

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

src/packages/frontend/chat/message.tsx

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ export default function Message(props: Readonly<Props>) {
374374
}
375375

376376
function contentColumn() {
377-
let borderRadius, marginBottom, marginTop: any;
377+
let marginBottom, marginTop;
378378
let value = newest_content(message);
379379

380380
const { background, color, lighten, message_class } = message_colors(
@@ -396,21 +396,13 @@ export default function Message(props: Readonly<Props>) {
396396
marginTop = "5px";
397397
}
398398

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-
407399
const message_style: CSSProperties = {
408400
color,
409401
background,
410402
wordWrap: "break-word",
403+
borderRadius: "5px",
411404
marginBottom,
412405
marginTop,
413-
borderRadius,
414406
fontSize: font_size,
415407
padding: selected ? "6px" : "9px",
416408
...(mode === "sidechat"

0 commit comments

Comments
 (0)