Skip to content

Commit 352731c

Browse files
committed
refactor: Adjust line heights and margins in ChatMessage styles for improved readability
1 parent 5d23cb6 commit 352731c

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

client/src/styles/ChatMessage.styles.ts

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export const useStyles = makeStyles({
4646
borderRadius: tokens.borderRadiusMedium,
4747
whiteSpace: "pre-wrap",
4848
wordBreak: "break-word",
49-
lineHeight: "1.6",
49+
lineHeight: "1.3",
5050
fontSize: tokens.fontSizeBase300,
5151
},
5252
userBubble: {
@@ -79,19 +79,24 @@ export const useStyles = makeStyles({
7979
},
8080
markdown: {
8181
"& p": {
82-
margin: "0 0 4px 0",
82+
margin: "0 0 8px 0",
8383
"&:last-child": {
8484
marginBottom: 0,
8585
},
8686
},
8787
"& ul, & ol": {
8888
margin: "4px 0",
8989
paddingLeft: "20px",
90+
"& li + li": {
91+
marginTop: "2px",
92+
},
9093
},
9194
"& li": {
92-
marginBottom: "2px",
95+
marginBottom: 0,
96+
lineHeight: "1.4",
9397
"& p": {
9498
margin: 0,
99+
display: "inline",
95100
},
96101
},
97102
"& code": {

0 commit comments

Comments
 (0)