Skip to content

Commit 9ca7530

Browse files
committed
(UI) add min/max width to rooms list
1 parent eabf6a3 commit 9ca7530

File tree

2 files changed

+8
-16
lines changed

2 files changed

+8
-16
lines changed

src/ChatWindow/Room.vue

Lines changed: 5 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
<template>
2-
<div
3-
class="col-messages"
4-
:class="{ 'col-messages-full': !showRoomsList || singleRoom }"
5-
v-show="(isMobile && !showRoomsList) || !isMobile"
6-
>
2+
<div class="col-messages" v-show="(isMobile && !showRoomsList) || !isMobile">
73
<div class="room-header app-border-b">
84
<div
95
v-if="!singleRoom"
@@ -547,25 +543,18 @@ export default {
547543

548544
<style lang="scss" scoped>
549545
.col-messages {
550-
flex: 0 0 75%;
551-
max-width: 75%;
552546
position: relative;
553547
height: 100%;
554-
}
555-
556-
.col-messages-full {
557-
flex: 0 0 100%;
558-
max-width: 100%;
548+
flex: 1;
559549
}
560550
561551
.room-header {
562-
align-items: center;
563-
display: flex;
564-
flex: 1 1 100%;
565-
padding: 0 16px;
566552
position: relative;
553+
display: flex;
554+
align-items: center;
567555
height: 64px;
568556
margin-right: 1px;
557+
padding: 0 16px;
569558
background: var(--chat-header-bg-color);
570559
border-top-right-radius: var(--chat-container-border-radius);
571560
}

src/ChatWindow/RoomsList.vue

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,8 @@ export default {
134134
<style lang="scss" scoped>
135135
.rooms-container {
136136
flex: 0 0 25%;
137+
min-width: 260px;
138+
max-width: 500px;
137139
position: relative;
138140
background: var(--chat-sidemenu-bg-color);
139141
height: 100%;
@@ -144,6 +146,7 @@ export default {
144146
145147
.rooms-container-full {
146148
flex: 0 0 100%;
149+
max-width: 100%;
147150
}
148151
149152
.box-search {

0 commit comments

Comments
 (0)