|
|
@ -1,27 +1,29 @@
|
|
|
|
<template>
|
|
|
|
<template>
|
|
|
|
<div id="chatInformation">
|
|
|
|
<div id="chatInformation">
|
|
|
|
<icon class="closeBtn" onclick="this.parentNode.style.display = 'none'" ic="./sym/ic_close_white_24px.svg" />
|
|
|
|
|
|
|
|
<div id="box">
|
|
|
|
<div id="box">
|
|
|
|
<div class="informationBox">
|
|
|
|
<div class="scrollContainer">
|
|
|
|
<div class="picBoxBig"><div class="placeholderBig"><p>{{session.currentRoom.name.substr(0,2)}}</p></div></div>
|
|
|
|
<div class="informationBox">
|
|
|
|
<div class="roomInformation">
|
|
|
|
<div class="picBoxBig"><div class="placeholderBig">{{session.currentRoom.name.substr(0,2)}}</div></div>
|
|
|
|
<div class="roomName">{{session.currentRoom.name}}</div>
|
|
|
|
<div class="roomInformation">
|
|
|
|
<div class="users">{{session.currentRoom.members.length}} members</div>
|
|
|
|
<div class="roomName">{{session.currentRoom.name}}</div>
|
|
|
|
</div>
|
|
|
|
<div class="users">{{session.currentRoom.members.length}} members</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<h2 v-if="session.currentRoom.members.length !== 0">members:</h2>
|
|
|
|
</div>
|
|
|
|
<div v-for="member in session.currentRoom.members" :key="member.sender">
|
|
|
|
<h2 v-if="session.currentRoom.members.length !== 0">members:</h2>
|
|
|
|
<div class="contentBox">
|
|
|
|
<div v-for="member in session.currentRoom.members" :key="member.sender">
|
|
|
|
<img v-if="member.content.avatar_url" class="picBox"
|
|
|
|
<div class="contentBox">
|
|
|
|
:src="`https://adb.sh/_matrix/media/r0/thumbnail/adb.sh/${member.content.avatar_url.split('/',4)[3]}?width=64&height=64&method=crop`"/>
|
|
|
|
<img v-if="member.content.avatar_url" class="picBox"
|
|
|
|
|
|
|
|
:src="`https://adb.sh/_matrix/media/r0/thumbnail/adb.sh/${member.content.avatar_url.split('/',4)[3]}?width=64&height=64&method=crop`"/>
|
|
|
|
<div v-else class="picBox"><p>{{member.content.displayname.substr(0,2)}}</p></div>
|
|
|
|
<div v-else class="picBox"><p>{{member.content.displayname.substr(0,2)}}</p></div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="information">
|
|
|
|
<div class="information">
|
|
|
|
<div class="userName">{{member.content.displayname}}</div>
|
|
|
|
<div class="userName">{{member.content.displayname}}</div>
|
|
|
|
<div class="status">{{member.sender}}</div>
|
|
|
|
<div class="status">{{member.sender}}</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<icon class="closeBtn" onclick="this.parentNode.style.display = 'none'" ic="./sym/ic_close_white_24px.svg" />
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
<script>
|
|
|
|
<script>
|
|
|
@ -65,6 +67,12 @@ export default {
|
|
|
|
height: 100%;
|
|
|
|
height: 100%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@media (max-height: 40rem) {
|
|
|
|
|
|
|
|
#chatInformation{
|
|
|
|
|
|
|
|
top: 0;
|
|
|
|
|
|
|
|
height: 100%;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
.closeBtn{
|
|
|
|
.closeBtn{
|
|
|
|
position: absolute;
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
top: 0;
|
|
|
@ -73,28 +81,25 @@ export default {
|
|
|
|
box-shadow: none;
|
|
|
|
box-shadow: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#box{
|
|
|
|
#box{
|
|
|
|
position: relative;
|
|
|
|
position: absolute;
|
|
|
|
|
|
|
|
top: 0;
|
|
|
|
width: calc(100% - 2rem);
|
|
|
|
width: calc(100% - 2rem);
|
|
|
|
padding: 0.001rem 1rem 1rem;
|
|
|
|
padding: 0 1rem 0 1rem;
|
|
|
|
overflow-y: auto;
|
|
|
|
overflow-y: auto;
|
|
|
|
max-height: calc(100% - 8rem);
|
|
|
|
overflow-x: hidden;
|
|
|
|
margin-top: 2rem;
|
|
|
|
height: 100%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.informationBox{
|
|
|
|
.scrollContainer{
|
|
|
|
margin-top: 0.2rem;
|
|
|
|
padding: 1rem 0 1rem 0;
|
|
|
|
height: 5rem;
|
|
|
|
|
|
|
|
padding: 0.2rem;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.picBoxBig{
|
|
|
|
.picBoxBig{
|
|
|
|
text-align: center;
|
|
|
|
text-align: center;
|
|
|
|
background-color: #42b983 ;
|
|
|
|
background-color: #42a7b9;
|
|
|
|
|
|
|
|
padding-top: 1.5rem;
|
|
|
|
width: 5rem;
|
|
|
|
width: 5rem;
|
|
|
|
height: 5rem;
|
|
|
|
height: 3.5rem;
|
|
|
|
border-radius: 5rem;
|
|
|
|
border-radius: 5rem;
|
|
|
|
}
|
|
|
|
font-size: 2rem;
|
|
|
|
.placeholderBig{
|
|
|
|
|
|
|
|
padding-top: 1rem;
|
|
|
|
|
|
|
|
margin-bottom: 1rem;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.roomInformation{
|
|
|
|
.roomInformation{
|
|
|
|
position: relative;
|
|
|
|
position: relative;
|
|
|
@ -119,7 +124,7 @@ export default {
|
|
|
|
.picBox{
|
|
|
|
.picBox{
|
|
|
|
position: absolute;
|
|
|
|
position: absolute;
|
|
|
|
left: 1rem;
|
|
|
|
left: 1rem;
|
|
|
|
background-color: #00BCD4;
|
|
|
|
background-color: #42a7b9;
|
|
|
|
width: 3rem;
|
|
|
|
width: 3rem;
|
|
|
|
height:3rem;
|
|
|
|
height:3rem;
|
|
|
|
border-radius: 2rem;
|
|
|
|
border-radius: 2rem;
|
|
|
|