I’m working on a targeted collaboration setup that positions Chat as the primary space for member communication, similar to other collaboration platforms. The goal is for members to land directly in their channels or latest threads, making chat the central hub when they visit the site.
It seems there’s currently no way to have chat open in full-screen mode by default. Could this be added as an option?
It could be exposed as a site setting, a theme modifier, or a value transformer. A way to give theme authors or site admins the flexibility to integrate Chat as the default interaction view.
I know it’s already solved, but instead of accessing localstorage directly like this, if you are able to access the plugin services from a theme, you can do:
Yes using service is nicer, but I don’t think we have any way to check if any preference has been set through the service atm. Do we?
And if understood the request here, we don’t want to override any decision of the user, we just want to promote full screen on first load, if we just want to force it yes your solution will work.
In fullscreen chat mode, you typically need to exit fullscreen (or otherwise change the chat UI) before you see a clear option to go back to the list of chats or switch to a conversation with another member.
Might be worth considering if there’s a way to improve that navigation experience within fullscreen itself.
Testing the UX in my current case, it actually feels more intuitive to have Chat full-screen all the time. I want Chat to be the primary mode of communication, and allowing it to be minimized users can end up on a screen they didn’t intentionally choose before, which can be confusing.
I’m thinking of just using CSS to hide the minimize option, unless there’s a more direct way to disable it?
@jahan_gagan I’m not quite sure what you were referring to, is this on sites that use a hamburger menu for navigation? In my setup, all navigation options are available via the sidebar.
One issue I’ve run into though: on tablets the keyboard automatically pops up when navigating to a chat channel and it causes a very jumpy layout. I haven’t looked into addressing that, just noting it as a complication.
Yes hiding the collapse button would work, but I just checked and there is one more way users may switch back to drawer mode. If you press the - key when you are in the forum, we open the chat drawer:
And in this function we call chatStateManager.prefersDrawer(), which sets the local storage preference. We have had some more discussions lately internally about allowing a chat-only mode of Discourse, including an experiment in this direction, as well as ideas around drawer mode.
Not sure when the time will come for us to focus on this more, @mcwumbly may have some input here or @lindsey .
Thanks, that’s really helpful to know! Not sure yet what I’ll do right now, but yes, would be great if there will be a future option to fully align this with common Discourse settings.