left: Stick to the left side of the content right: Stick to the right side of the content outside-left: Stick to the left side of the window outside-right: Stick to the right side of the window
theme_style
When possible, use the current theme style on these chat sidebar position. Available only for most of the popular themes. This is not a reliable setting (theme name can be changed). Disable to use the default theme style.
Allow users to set their chat sidebar preferences. Note: this is saved in the user’s browser local storage.
Available values: position: Allow users to set the chat sidebar position
Todo
Tests
Smoother transitions
More user’s preferences?
Dev Notes
Initially, I tried to insert the <ChatDrawer /> component into another outlet so it would be easier to manipulate and keep it in the flow. Unfortunately, the original component can’t be suppressed entirely (I’m thinking of the events). At least, I could not find a way to overwrite it.
It leaves me no choice but to follow the hard JS way at the cost of a little more CPU intensive but less intrusive (though manual resizing only happens sometimes).
Unfortunately, it can’t support Discourse Bars at the moment.
The component uses the original chat drawer, and the positioning is done manually.
Unless we can use/move the original <ChatDrawer /> component where we want, that would be difficult, I believe. I agree, though; that would be great!
At least it can be displayed alongside the Bar's sidebar
My component uses #main-outlet-wrapper element as a reference, so anything inside will work fine.
I believe this component is no longer working as of `3.6.0.beta2-latest` ? doesn’t matter what I pick it’s always on the right like the stock experience… Is it working for anyone out there?
This component is indeed working as expected now!, I was mostly all the time testing on my macbook user screen and when the component doesn’t have enough space it just doesn’t show up anything which is probably why i got confused. This is working perfectly now
Thank you very much for going above and beyond to help me !
So, I was talking offline with @Arkshine, and since I had a few suggestions, we decided this was a better place to leave them!
Resizable chat window (width and height)
Allow it to be still floating even if it covers the text on the screen.
It would be great if width was also auto; that way, it would always find a way to fit, even if it looks small, and in the settings (not default), we’d have something like “min px” and a warning that says, “If set, the chat will revert to stock if not at least xxx value.”
HI, since it’s now possible to star our favorites chat and DM channels, is there a way to have the “Starred” list of chat and DM channels displayed by default in that Chat Side bar? Thanks.
Update: I mean if nothing is starred, don’t change anything, otherwise, display the starred channels?
Hi, I noticed this morning that starred channels do not appear anymore in the general list, only in the Starred section in the sidebar. Thus the importance of having this starred list visible by default.