mirror of
https://github.com/discourse/discourse.git
synced 2024-12-12 02:23:42 +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>
20 lines
364 B
SCSS
20 lines
364 B
SCSS
#main-chat-outlet.chat-view {
|
|
min-height: 0;
|
|
display: grid;
|
|
grid-template-rows: 100%;
|
|
grid-template-areas: "main threads";
|
|
grid-template-columns: 1fr auto;
|
|
}
|
|
|
|
.chat-side-panel {
|
|
box-sizing: border-box;
|
|
border-left: 1px solid var(--primary-low);
|
|
position: relative;
|
|
min-width: 150px;
|
|
|
|
&__list {
|
|
flex-grow: 1;
|
|
padding: 0 1.5em 1em;
|
|
}
|
|
}
|