Skip to content

Commit a9ccfbf

Browse files
committed
(fix) room header title ellipsis
1 parent 8497e84 commit a9ccfbf

File tree

2 files changed

+12
-6
lines changed

2 files changed

+12
-6
lines changed

src/ChatWindow/Room.vue

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@
2323
class="room-avatar"
2424
:style="{ 'background-image': `url('${room.avatar}')` }"
2525
></div>
26-
<div>
27-
<div class="room-name">{{ room.roomName }}</div>
28-
<div v-if="typingUsers" class="room-info">
26+
<div class="text-ellipsis">
27+
<div class="room-name text-ellipsis">{{ room.roomName }}</div>
28+
<div v-if="typingUsers" class="room-info text-ellipsis">
2929
{{ typingUsers }} {{ textMessages.IS_TYPING }}
3030
</div>
31-
<div v-else class="room-info">
31+
<div v-else class="room-info text-ellipsis">
3232
{{ userStatus }}
3333
</div>
3434
</div>
@@ -631,16 +631,18 @@ export default {
631631
.room-wrapper {
632632
display: flex;
633633
align-items: center;
634+
min-width: 0;
634635
height: 100%;
635636
width: 100%;
636637
padding: 0 16px;
637638
}
638639
639640
.info-wrapper {
640-
width: 100%;
641-
height: 100%;
642641
display: flex;
643642
align-items: center;
643+
min-width: 0;
644+
width: 100%;
645+
height: 100%;
644646
}
645647
646648
.toggle-button {
@@ -926,6 +928,8 @@ textarea {
926928
.room-avatar {
927929
height: 37px;
928930
width: 37px;
931+
min-height: 37px;
932+
min-width: 37px;
929933
}
930934
}
931935

src/styles/helper.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@
4848
background-color: #ddd;
4949
height: 42px;
5050
width: 42px;
51+
min-height: 42px;
52+
min-width: 42px;
5153
margin-right: 15px;
5254
border-radius: 50%;
5355
}

0 commit comments

Comments
 (0)