Skip to content

Commit 66ed091

Browse files
committed
fix(Layout): use flex layout for chat list instead of fixed calc
1 parent 1850e4e commit 66ed091

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

public/css/app.css

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,8 @@ div {
7373
}
7474

7575
.chat-column {
76+
display: flex;
77+
flex-direction: column;
7678
height: 90%;
7779
padding: 0.9375rem 0 0.625rem 0;
7880
margin: auto;
@@ -82,6 +84,7 @@ div {
8284
}
8385

8486
.user-typing {
87+
flex: 0;
8588
border: none;
8689
color: #8d25e8;
8790
margin: 0.75rem;
@@ -93,7 +96,7 @@ div {
9396
margin: 0.75rem;
9497
overflow-y: auto;
9598
overflow-x: hidden;
96-
height: calc(100% - 4rem);
99+
flex: 1;
97100
}
98101

99102
.message-inner {

0 commit comments

Comments
 (0)