Fix flex values after blur changes

pull/21833/head
Dariusz Niemczyk 2021-08-19 16:10:09 +02:00
parent 5a1633d53c
commit f5a284a1f0
No known key found for this signature in database
GPG Key ID: 3E8DC619E3C59A05
3 changed files with 20 additions and 14 deletions

View File

@ -24,6 +24,11 @@ $roomListCollapsedWidth: 68px;
} }
} }
.mx_LeftPanel_wrapper {
display: flex;
max-width: 50%;
}
.mx_LeftPanel { .mx_LeftPanel {
background-color: $roomlist-bg-color; background-color: $roomlist-bg-color;
// TODO decrease this once Spaces launches as it'll no longer need to include the 56px Community Panel // TODO decrease this once Spaces launches as it'll no longer need to include the 56px Community Panel

View File

@ -33,6 +33,7 @@ limitations under the License.
height: 100%; height: 100%;
} }
.mx_MatrixToolbar { .mx_MatrixToolbar {
order: 1; order: 1;
@ -47,9 +48,7 @@ limitations under the License.
display: flex; display: flex;
flex: 1; flex: 1;
flex-grow: 0;
min-height: 0; min-height: 0;
max-width: 50%;
} }
.mx_MatrixChat_syncError { .mx_MatrixChat_syncError {
@ -65,7 +64,7 @@ limitations under the License.
} }
/* not the left panel, and not the resize handle, so the roomview/groupview/... */ /* not the left panel, and not the resize handle, so the roomview/groupview/... */
.mx_MatrixChat > :not(.mx_LeftPanel):not(.mx_SpacePanel):not(.mx_ResizeHandle) { .mx_MatrixChat > :not(.mx_LeftPanel):not(.mx_SpacePanel):not(.mx_ResizeHandle):not(.mx_LeftPanel_wrapper) {
background-color: $primary-bg-color; background-color: $primary-bg-color;
flex: 1 1 0; flex: 1 1 0;

View File

@ -644,7 +644,8 @@ class LoggedInView extends React.Component<IProps, IState> {
aria-hidden={this.props.hideToSRUsers} aria-hidden={this.props.hideToSRUsers}
> >
<ToastContainer /> <ToastContainer />
<div ref={this._resizeContainer} className={bodyClasses}> <div className={bodyClasses}>
<div ref={this._resizeContainer} className='mx_LeftPanel_wrapper'>
<BackdropPanel <BackdropPanel
backgroundImage={this.state.backgroundImage} backgroundImage={this.state.backgroundImage}
/> />
@ -657,6 +658,7 @@ class LoggedInView extends React.Component<IProps, IState> {
</div> </div>
{ pageElement } { pageElement }
</div> </div>
</div>
<CallContainer /> <CallContainer />
<NonUrgentToastContainer /> <NonUrgentToastContainer />
<HostSignupContainer /> <HostSignupContainer />