Merge pull request #2440 from matrix-org/bwindels/smarterresizer
Improve room sublist resizing
This commit is contained in:
commit
0229453482
11 changed files with 407 additions and 229 deletions
|
@ -33,13 +33,25 @@ limitations under the License.
|
|||
|
||||
.mx_RoomSubList {
|
||||
min-height: 31px;
|
||||
flex: 0 100000000 auto;
|
||||
flex: 0 10000 auto;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.mx_RoomSubList.resized-sized {
|
||||
/*
|
||||
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 {
|
||||
min-height: 70px;
|
||||
min-height: 74px;
|
||||
|
||||
.mx_AutoHideScrollbar_offset {
|
||||
padding-bottom: 4px;
|
||||
|
@ -50,17 +62,6 @@ limitations under the License.
|
|||
flex: none !important;
|
||||
}
|
||||
|
||||
.mx_RoomSubList.resized-all {
|
||||
flex: 0 1 auto;
|
||||
}
|
||||
|
||||
.mx_RoomSubList.resized-sized {
|
||||
/* resizer set max-height on resized-sized,
|
||||
so that limits the height and hence
|
||||
needs a very small flex-shrink */
|
||||
flex: 0 10000 auto;
|
||||
}
|
||||
|
||||
.mx_RoomSubList_labelContainer {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue