discourse/plugins/chat/assets/stylesheets/common/chat-navbar.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

67 lines
1.2 KiB
SCSS

.c-navbar {
display: flex;
align-items: center;
width: 100%;
gap: 0.25rem;
&-container {
border-bottom: 1px solid var(--primary-low);
background: var(--secondary);
height: var(--chat-header-offset);
min-height: var(--chat-header-offset);
box-sizing: border-box;
display: flex;
z-index: z("composer", "content") - 1;
padding-inline: 1rem;
&.-clickable {
cursor: pointer;
}
}
.single-select-header {
padding: 0.3675rem 0.584rem;
}
.c-navbar__channel-title {
@include ellipsis();
font-weight: 700;
}
.c-navbar__title {
@include ellipsis();
font-weight: 700;
.chat-drawer & {
padding-left: 1rem;
}
}
.c-navbar__back-button ~ .c-navbar__title {
padding-left: 0;
}
.c-navbar__sub-title {
line-height: var(--line-height-small);
font-size: var(--font-down-1-rem);
font-weight: normal;
}
.c-navbar__threads-list-button {
gap: 0.25rem;
&.has-unreads {
.d-icon-discourse-threads {
color: var(--tertiary-med-or-tertiary);
}
}
}
}
.c-navbar__actions {
list-style: none;
margin-left: auto;
display: flex;
align-items: center;
}