1
0
Fork 0
forked from Mirrors/gomuks
nyxmuks/web/src/ui/roomlist/RoomList.css
2024-10-12 13:20:35 +03:00

58 lines
864 B
CSS

div.room-list {
grid-area: roomlist;
overflow-y: auto;
div.room-entry {
width: 100%;
display: flex;
gap: 4px;
/*border-radius: 4px;*/
user-select: none;
cursor: pointer;
&:hover {
background-color: #EEE;
}
&.active {
background-color: #DDD;
}
> div.room-entry-left {
height: 3rem;
width: 3rem;
> img.room-avatar {
padding: 4px;
}
}
> div.room-entry-right {
width: 100%;
display: flex;
flex-direction: column;
overflow: hidden;
justify-content: space-around;
> div.room-name {
font-weight: bold;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
> div.message-preview {
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
}
}
}
}
img.avatar {
width: 2.5rem;
height: 2.5rem;
border-radius: 50%;
object-fit: cover;
}