mirror of
https://github.com/discourse/discourse.git
synced 2026-08-09 21:45:25 +08:00
Followup: * remove wrong size for emoji in chat sidebar * add background styling for emoji/icon in DMs (mobile) * fix avatar + thread icon positioning in threads index (mobile) Current states of all screens: #### Desktop Sidebar Largely unchanged <img width="530" height="1022" alt="CleanShot 2025-12-11 at 16 13 55@2x" src="https://github.com/user-attachments/assets/2e323e22-6d56-48c7-8efc-d7ec6f316883" /> #### Desktop Drawer <img width="3588" height="992" alt="image" src="https://github.com/user-attachments/assets/0a4ad902-a3c4-4ea9-86dc-56f34ec88bf5" /> #### Mobile <img width="3120" height="1508" alt="image" src="https://github.com/user-attachments/assets/f7046c84-0272-44e6-8d01-c656b77c23c3" />
78 lines
1.5 KiB
SCSS
Vendored
78 lines
1.5 KiB
SCSS
Vendored
.c-user-thread {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 1rem;
|
|
margin-inline: 0;
|
|
padding: 0.5rem 1.5rem;
|
|
|
|
.chat-channel-icon {
|
|
grid-area: avatar;
|
|
position: relative;
|
|
|
|
.avatar {
|
|
margin-top: 4px;
|
|
width: var(--channel-list-avatar-size);
|
|
height: var(--channel-list-avatar-size);
|
|
}
|
|
}
|
|
|
|
.c-user-thread__link {
|
|
display: grid;
|
|
column-gap: 0.75em;
|
|
grid-template-columns: 1fr auto;
|
|
margin-inline: 0;
|
|
width: 100%;
|
|
grid-template-areas:
|
|
"category timestamp"
|
|
"title title"
|
|
"excerpt excerpt";
|
|
}
|
|
|
|
.avatar-flair.--threads {
|
|
position: absolute;
|
|
top: -4px;
|
|
right: -3px;
|
|
background: var(--primary-low);
|
|
border-radius: 50%;
|
|
padding: 0.2em;
|
|
line-height: var(--line-height-small);
|
|
border: 2px solid var(--secondary-very-high);
|
|
color: var(--primary-high);
|
|
}
|
|
|
|
.chat__thread-title-container {
|
|
display: flex;
|
|
grid-area: title;
|
|
|
|
.chat__thread-title {
|
|
@include ellipsis;
|
|
|
|
&__name {
|
|
@include ellipsis;
|
|
}
|
|
}
|
|
}
|
|
|
|
.chat-channel-title {
|
|
grid-area: category;
|
|
}
|
|
|
|
.chat-message-thread-indicator__last-reply-timestamp {
|
|
grid-area: timestamp;
|
|
font-size: var(--font-down-2-rem);
|
|
align-self: center;
|
|
}
|
|
|
|
.c-user-thread__excerpt {
|
|
@include ellipsis;
|
|
grid-area: excerpt;
|
|
display: flex;
|
|
color: var(--primary-high);
|
|
}
|
|
|
|
.c-user-thread__excerpt-text {
|
|
margin-left: 0.25em;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
}
|