Actually fix the layout bug without re-regressing the prior issue

This commit is contained in:
Michael Telatynski 2021-05-04 14:14:06 +01:00
parent 4489f8a6ea
commit caa772348f
2 changed files with 5 additions and 2 deletions

View file

@ -79,8 +79,10 @@ $activeBorderColor: $secondary-fg-color;
.mx_SpaceItem {
display: inline-flex;
flex-flow: wrap;
align-self: baseline;
width: 100%;
&.mx_SpaceItem_narrow {
align-self: baseline;
}
}
.mx_SpaceItem.collapsed {

View file

@ -297,6 +297,7 @@ export class SpaceItem extends React.PureComponent<IItemProps, IItemState> {
const isActive = activeSpaces.includes(space);
const itemClasses = classNames({
"mx_SpaceItem": true,
"mx_SpaceItem_narrow": isNarrow,
"collapsed": collapsed,
"hasSubSpaces": childSpaces && childSpaces.length,
});