discourse/plugins/chat/assets/stylesheets/mobile/base-mobile.scss
David Battersby 4512e5652f
FEATURE: Mobile Chat Footer Redesign (#25161)
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>
2024-01-16 14:29:33 +08:00

85 lines
1.2 KiB
SCSS

:root {
--channel-list-avatar-size: 38px;
--chat-header-offset: 56px;
}
.chat-message-container:not(.-user-info-hidden) {
.chat-message {
padding-top: 0.75em;
}
}
html.has-full-page-chat {
.footer-nav {
display: none !important;
}
body #main-outlet {
padding: 0;
.main-chat-outlet {
.chat-channel {
min-width: 0;
}
&.has-side-panel-expanded {
grid-template-columns: 1fr;
.c-routes-channel {
display: none;
}
}
}
}
}
.full-page-chat {
grid-template-columns: 100%;
width: 100%;
.btn:active,
.btn:hover {
.d-icon {
color: var(--primary-medium);
}
}
.chat-channel {
border-radius: 0;
padding: 0;
}
.chat-drawer {
width: 100%;
}
}
.sidebar-container .channels-list .chat-channel-divider {
padding-left: 1em;
}
.sidebar-container .channels-list .chat-channel-row {
padding: 0.5em;
}
.create-channel-modal {
.modal-inner-container {
width: 95%;
}
}
.chat-message-separator {
margin-left: 0;
}
.header-dropdown-toggle.chat-header-icon {
.icon {
&.active .d-icon {
color: var(--primary-medium);
}
.chat-channel-unread-indicator {
border-color: var(--primary-very-low);
}
}
}