From 8a1948520db4f9c4ff5d11e3be1e87f26d8a22b5 Mon Sep 17 00:00:00 2001 From: John Livingston Date: Mon, 2 Sep 2024 17:07:58 +0200 Subject: [PATCH] Fix regression for muc sidebar (related to Converse upstream). --- conversejs/custom/shared/styles/livechat.scss | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/conversejs/custom/shared/styles/livechat.scss b/conversejs/custom/shared/styles/livechat.scss index 93941766..1ae46aaf 100644 --- a/conversejs/custom/shared/styles/livechat.scss +++ b/conversejs/custom/shared/styles/livechat.scss @@ -204,7 +204,10 @@ body.converse-embedded { order: 99; } } +} +/* stylelint-disable-next-line no-descending-specificity */ +#conversejs { // here we use the id have gretter priority // These CSS are tricks: Converse v11 tries to hide the MUC when screen width is under 768px. // We don't want that, so we cancel the d-none. // FIXME: these hacks should be temporary, waiting for some improvement on Converse. @@ -215,7 +218,10 @@ body.converse-embedded { /* stylelint-disable-next-line no-descending-specificity */ converse-muc-sidebar { - width: auto !important; + // we must not use !important for flex, it would break resizing. + // That's why we use #conversejs insteand of .conversejs for this block. + flex: 0 0 min(400px, 50%); + min-width: min(200px, 50%) !important; .occupants { width: 100%;