mirror of
https://github.com/discourse/discourse.git
synced 2024-12-02 20:53: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>
89 lines
1.7 KiB
SCSS
89 lines
1.7 KiB
SCSS
.btn-floating.open-new-message-btn {
|
|
position: fixed;
|
|
background: var(--tertiary);
|
|
bottom: 5rem;
|
|
right: 2rem;
|
|
border-radius: 50%;
|
|
font-size: var(--font-up-3);
|
|
padding: 0.5rem;
|
|
transition: transform 0.25s ease, box-shadow 0.25s ease;
|
|
z-index: z("usercard");
|
|
box-shadow: 0px 5px 5px -1px rgba(0, 0, 0, 0.25);
|
|
|
|
.d-icon {
|
|
color: var(--primary-very-low);
|
|
}
|
|
|
|
&:active {
|
|
box-shadow: 0px 0px 5px -1px rgba(0, 0, 0, 0.25);
|
|
transform: scale(0.9);
|
|
}
|
|
|
|
&:focus {
|
|
@include default-focus;
|
|
border-color: var(--quaternary);
|
|
outline-color: var(--quaternary);
|
|
}
|
|
}
|
|
|
|
.channels-list {
|
|
padding-bottom: env(safe-area-inset-bottom);
|
|
position: relative;
|
|
@include chat-scrollbar();
|
|
|
|
@include breakpoint(mobile-large) {
|
|
@include chat-scrollbar();
|
|
}
|
|
|
|
.open-browse-page-btn,
|
|
.open-draft-channel-page-btn,
|
|
.chat-channel-leave-btn {
|
|
position: relative;
|
|
padding: 0;
|
|
background: transparent;
|
|
color: var(--primary-medium);
|
|
font-size: var(--font-0-rem);
|
|
|
|
&:after {
|
|
content: "";
|
|
position: absolute;
|
|
top: -50%;
|
|
left: -50%;
|
|
width: 200%;
|
|
height: 200%;
|
|
}
|
|
|
|
&:hover {
|
|
background: transparent;
|
|
|
|
.d-icon {
|
|
color: var(--primary);
|
|
}
|
|
}
|
|
}
|
|
|
|
.channel-list-empty-message {
|
|
margin: 1em 0.5em 0.5em 0.5em;
|
|
padding: 0 1em;
|
|
}
|
|
|
|
.chat-channel-divider {
|
|
padding: 2.5rem 1.5rem 0.5rem 1.5rem;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
font-weight: bold;
|
|
font-family: var(--heading-font-family);
|
|
font-size: var(--font-down-1);
|
|
color: var(--quaternary);
|
|
|
|
.channel-title {
|
|
line-height: var(--line-height-medium);
|
|
}
|
|
|
|
&:first-of-type {
|
|
padding-top: 1rem;
|
|
}
|
|
}
|
|
}
|