Skip to content

Commit a4e9def

Browse files
committed
(UI) improve rooms responsiveness
1 parent 499ba4e commit a4e9def

File tree

2 files changed

+39
-2
lines changed

2 files changed

+39
-2
lines changed

src/ChatWindow/Room.vue

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@
159159
:style="{
160160
'min-height': `${imageDimensions ? imageDimensions.height : 20}px`,
161161
'padding-left': `${
162-
imageDimensions ? imageDimensions.width - 10 : 16
162+
imageDimensions ? imageDimensions.width - 10 : 12
163163
}px`
164164
}"
165165
v-model="message"
@@ -611,7 +611,8 @@ export default {
611611
612612
.room-name {
613613
font-size: 17px;
614-
line-height: 18px;
614+
font-weight: 600;
615+
line-height: 22px;
615616
color: var(--chat-header-color-name);
616617
}
617618
@@ -844,6 +845,26 @@ textarea {
844845
}
845846
846847
@media only screen and (max-width: 768px) {
848+
.room-header {
849+
height: 50px;
850+
padding: 0 10px;
851+
852+
.room-name {
853+
font-size: 16px;
854+
line-height: 22px;
855+
}
856+
857+
.room-info {
858+
font-size: 12px;
859+
line-height: 16px;
860+
}
861+
862+
.room-avatar {
863+
height: 37px;
864+
width: 37px;
865+
}
866+
}
867+
847868
.box-footer {
848869
border-top: var(--chat-border-style-input);
849870
padding: 7px 2px 7px 7px;

src/ChatWindow/RoomsList.vue

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,7 @@ input {
260260
.room-name {
261261
flex: 1;
262262
color: var(--chat-room-color-username);
263+
font-weight: 600;
263264
}
264265
265266
.text-last {
@@ -298,4 +299,19 @@ input {
298299
.state-online {
299300
background-color: var(--chat-room-color-online);
300301
}
302+
303+
@media only screen and (max-width: 768px) {
304+
.box-search {
305+
height: 50px;
306+
}
307+
308+
input {
309+
padding: 8px 8px 8px 38px;
310+
}
311+
312+
.room-item {
313+
min-height: 60px;
314+
padding: 0 8px;
315+
}
316+
}
301317
</style>

0 commit comments

Comments
 (0)