xmpp.chapril.org-conversejs/src/plugins/chatboxviews/styles/chats.scss
JC Brand 84c6a0039c Fix embedded, singleton mode.
It's now necessary to add a `converse-root` element in the DOM where you
want Converse to render (previously it was any element with the id
`#conversejs`).

Also, turned `converse-chats` element into a Lit element and re-render
`converse-root` and `converse-chats` when the `view-mode` or `singleton`
settings change. This is a step towards being able to change the view
mode on the fly and have the entire chat re-render appropriately.

Fixes #2647
2021-09-24 11:53:49 +02:00

43 lines
1.1 KiB
SCSS

.conversejs {
converse-chats {
&.converse-chatboxes {
z-index: 1031; // One more than bootstrap navbar
position: fixed;
bottom: 0;
right: 0;
}
&.converse-overlayed {
height: 3em;
> .row {
flex-direction: row-reverse;
}
}
&.converse-fullscreen,
&.converse-mobile {
flex-wrap: nowrap;
width: 100vw;
}
&.converse-embedded {
box-sizing: border-box;
*, *:before, *:after {
box-sizing: border-box;
}
bottom: auto;
height: 100%; // When embedded, it fills the containing element
position: relative;
right: auto;
width: 100%;
&.converse-chatboxes {
z-index: 1031; // One more than bootstrap navbar
position: inherit;
flex-wrap: nowrap;
bottom: auto;
height: 100%;
width: 100%;
}
}
}
}