From 961e0d24dfe05101469b741857fa341fa5b97c8f Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Mon, 14 Jan 2019 14:41:31 +0100 Subject: [PATCH] flex-basis to 0 so sublists shrink/grow not-relative to their content --- res/css/structures/_RoomSubList.scss | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/res/css/structures/_RoomSubList.scss b/res/css/structures/_RoomSubList.scss index 08e7eec6d7..b7fe19ca89 100644 --- a/res/css/structures/_RoomSubList.scss +++ b/res/css/structures/_RoomSubList.scss @@ -39,7 +39,15 @@ limitations under the License. } .mx_RoomSubList.resized-sized { - flex: 0 1 auto; + /* + flex-basis to 0 so sublists + are not shrinking/growing relative + to their content (as would be the case with auto), + as this intervenes with sizing an item exactly + when not available space is available + in the flex container + */ + flex: 1 1 0; } .mx_RoomSubList_nonEmpty {