mirror of
https://github.com/discourse/discourse.git
synced 2024-12-12 00:23:44 +08:00
4512e5652f
This update adds three tabs to the bottom of the chat overlay to make it easier for users to navigate chat on mobile. As a result of this change: - Direct Messages are now shown separately from public channels on mobile - My Threads has now moved from the channel list to it's own tab on mobile - My Threads can still be accessed on desktop via the sidebar and within the drawer channel list - Chat back button has been updated to navigate to the correct tab (for both channels and threads) Some special cases: - If DMs are not used then the tab is not rendered - If the user has no threads then the tab is not rendered - If both the tabs for DMs and Threads aren't available then the whole footer will not be rendered - Chat footer is only shown on the listing pages (DMs, Channels, My Threads) --------- Co-authored-by: chapoi <101828855+chapoi@users.noreply.github.com> Co-authored-by: Joffrey JAFFEUX <j.jaffeux@gmail.com>
82 lines
1.5 KiB
SCSS
82 lines
1.5 KiB
SCSS
@import "common/foundation/mixins";
|
|
|
|
.full-page-chat {
|
|
.channels-list {
|
|
padding-bottom: 6rem;
|
|
box-sizing: border-box;
|
|
|
|
.channels-list-container {
|
|
background: var(--secondary);
|
|
overflow: hidden;
|
|
}
|
|
|
|
.chat-channel-divider {
|
|
font-size: var(--font-up-1);
|
|
|
|
&:first-of-type {
|
|
padding-top: 1rem;
|
|
}
|
|
|
|
.channel-title {
|
|
color: var(--primary);
|
|
font-size: var(--font-down-1);
|
|
}
|
|
}
|
|
|
|
.chat-channel-row {
|
|
&.--threads {
|
|
color: var(--primary);
|
|
padding-inline: 1.5rem;
|
|
font-size: var(--font-up-1-rem);
|
|
border: 0;
|
|
|
|
.chat-channel-title {
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
.c-unread-indicator {
|
|
width: 8px;
|
|
height: 8px;
|
|
}
|
|
}
|
|
}
|
|
|
|
.chat-user-avatar {
|
|
+ .chat-channel-title__usernames {
|
|
margin-left: 1rem;
|
|
}
|
|
}
|
|
|
|
.chat-channel-title {
|
|
&__users-count {
|
|
font-size: var(--font-up-2);
|
|
& + .chat-channel-title__name {
|
|
margin-left: 1rem;
|
|
}
|
|
}
|
|
|
|
&__name {
|
|
margin-left: 0.75em;
|
|
font-size: var(--font-up-1);
|
|
}
|
|
|
|
&__category-badge {
|
|
font-size: var(--font-up-1);
|
|
}
|
|
|
|
&__user-status-message {
|
|
flex-shrink: 3;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.c-routes-direct-messages,
|
|
.c-routes-channels,
|
|
.c-routes-threads {
|
|
background: var(--primary-very-low);
|
|
max-width: 100vw;
|
|
}
|