2023-05-10 17:42:32 +08:00
|
|
|
@mixin thread-list-item {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
2023-10-07 17:06:16 +08:00
|
|
|
padding: 1rem 0;
|
|
|
|
margin-inline: 1rem 0.75rem;
|
2023-10-07 03:56:36 +08:00
|
|
|
border-bottom: 1px solid var(--primary-low);
|
|
|
|
cursor: pointer;
|
2023-05-10 17:42:32 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.chat-thread-list-item {
|
|
|
|
@include thread-list-item;
|
2023-05-29 15:11:55 +08:00
|
|
|
|
|
|
|
& + .chat-thread-list-item {
|
2023-10-07 03:56:36 +08:00
|
|
|
margin-top: -1px;
|
2023-05-29 15:11:55 +08:00
|
|
|
}
|
2023-05-10 17:42:32 +08:00
|
|
|
|
|
|
|
.touch & {
|
|
|
|
&:active {
|
|
|
|
background-color: var(--d-hover);
|
2023-10-07 17:06:16 +08:00
|
|
|
padding-inline: 1rem 0.75rem;
|
2023-10-07 03:56:36 +08:00
|
|
|
margin-inline: 0;
|
2023-05-10 17:42:32 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.no-touch & {
|
|
|
|
&:hover,
|
|
|
|
&:active {
|
|
|
|
background-color: var(--d-hover);
|
2023-10-07 17:06:16 +08:00
|
|
|
padding-inline: 1rem 0.75rem;
|
2023-10-07 03:56:36 +08:00
|
|
|
margin-inline: 0;
|
2023-05-10 17:42:32 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-10-06 21:11:04 +08:00
|
|
|
&__members {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
overflow: hidden;
|
|
|
|
}
|
|
|
|
|
2023-08-25 17:20:03 +08:00
|
|
|
&__participants {
|
2023-10-06 21:11:04 +08:00
|
|
|
position: relative;
|
2023-08-25 17:20:03 +08:00
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
2023-10-06 21:11:04 +08:00
|
|
|
overflow: hidden;
|
|
|
|
margin-right: 0.25rem;
|
2023-08-25 17:20:03 +08:00
|
|
|
}
|
|
|
|
|
2023-05-10 17:42:32 +08:00
|
|
|
&__main {
|
|
|
|
flex: 1 1 100%;
|
2023-05-29 15:11:55 +08:00
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
&__body {
|
|
|
|
padding-bottom: 0.25rem;
|
|
|
|
word-break: break-word;
|
2023-09-01 00:09:41 +08:00
|
|
|
overflow: hidden;
|
|
|
|
display: -webkit-box;
|
|
|
|
-webkit-box-orient: vertical;
|
|
|
|
-webkit-line-clamp: 2;
|
2023-05-29 15:11:55 +08:00
|
|
|
|
|
|
|
> * {
|
|
|
|
pointer-events: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-08-25 00:45:20 +08:00
|
|
|
&__last-reply-author {
|
|
|
|
font-weight: 700;
|
2023-09-01 00:09:41 +08:00
|
|
|
font-size: var(--font-down-1);
|
|
|
|
color: var(--primary-high);
|
2023-08-25 00:45:20 +08:00
|
|
|
}
|
|
|
|
|
2023-05-29 15:11:55 +08:00
|
|
|
&__metadata {
|
|
|
|
display: flex;
|
2023-08-25 00:45:20 +08:00
|
|
|
align-items: center;
|
2023-10-06 21:11:04 +08:00
|
|
|
gap: 0.5rem;
|
2023-09-01 00:09:41 +08:00
|
|
|
.chat-user-avatar {
|
2023-10-10 03:12:50 +08:00
|
|
|
cursor: pointer;
|
|
|
|
|
2023-10-06 21:11:04 +08:00
|
|
|
&__container {
|
|
|
|
padding: 0;
|
|
|
|
}
|
2023-09-01 00:09:41 +08:00
|
|
|
.avatar {
|
2023-10-06 21:11:04 +08:00
|
|
|
border: 2px solid var(--primary-very-low);
|
|
|
|
padding: 0;
|
|
|
|
|
|
|
|
.chat-thread-list-item:hover & {
|
|
|
|
border-color: var(--d-hover);
|
|
|
|
}
|
2023-09-01 00:09:41 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
&:not(:last-child) {
|
2023-10-06 21:11:04 +08:00
|
|
|
margin-right: -6px;
|
2023-09-01 00:09:41 +08:00
|
|
|
}
|
|
|
|
}
|
2023-10-06 21:11:04 +08:00
|
|
|
.chat-thread-participants__avatar-group {
|
|
|
|
overflow: hidden;
|
|
|
|
justify-content: flex-start;
|
|
|
|
}
|
2023-08-25 00:45:20 +08:00
|
|
|
}
|
|
|
|
|
2023-09-01 00:09:41 +08:00
|
|
|
&__last-reply-timestamp {
|
2023-10-06 21:11:04 +08:00
|
|
|
flex-shrink: 0;
|
2023-09-01 00:09:41 +08:00
|
|
|
color: var(--primary-medium);
|
|
|
|
font-size: var(--font-down-2);
|
2023-08-25 00:45:20 +08:00
|
|
|
@include ellipsis;
|
2023-10-06 21:11:04 +08:00
|
|
|
margin-left: auto;
|
2023-05-10 17:42:32 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
&__header {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
align-items: center;
|
2023-10-06 21:11:04 +08:00
|
|
|
margin-bottom: 0.5rem;
|
2023-05-10 17:42:32 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
&__title {
|
2023-05-29 15:11:55 +08:00
|
|
|
flex: 1 1 auto;
|
2023-08-25 00:45:20 +08:00
|
|
|
@include ellipsis;
|
2023-05-10 17:42:32 +08:00
|
|
|
}
|
|
|
|
|
2023-05-29 15:11:55 +08:00
|
|
|
&__unread-indicator {
|
|
|
|
flex: 0 0 auto;
|
2023-08-25 17:20:03 +08:00
|
|
|
|
|
|
|
.chat-thread-list-item-unread-indicator__number {
|
|
|
|
color: var(--primary);
|
|
|
|
font-size: var(--font-up-1);
|
|
|
|
}
|
2023-05-15 13:53:30 +08:00
|
|
|
}
|
|
|
|
|
2023-05-10 17:42:32 +08:00
|
|
|
&__open-button {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
box-sizing: border-box;
|
|
|
|
justify-content: center;
|
|
|
|
}
|
2023-05-29 15:11:55 +08:00
|
|
|
|
|
|
|
&__om-user-avatar {
|
2023-09-01 00:09:41 +08:00
|
|
|
margin-right: 0.5rem;
|
2023-05-29 15:11:55 +08:00
|
|
|
flex: 0 0 auto;
|
|
|
|
}
|
2023-05-10 17:42:32 +08:00
|
|
|
}
|