You've already forked matrix-react-sdk
							
							
				mirror of
				https://github.com/matrix-org/matrix-react-sdk.git
				synced 2025-11-04 11:51:45 +03:00 
			
		
		
		
	Fix thread summary layout for narrow right panel timeline (#7838)
This commit is contained in:
		@@ -1,5 +1,5 @@
 | 
			
		||||
/*
 | 
			
		||||
Copyright 2016 - 2021 The Matrix.org Foundation C.I.C.
 | 
			
		||||
Copyright 2016 - 2022 The Matrix.org Foundation C.I.C.
 | 
			
		||||
 | 
			
		||||
Licensed under the Apache License, Version 2.0 (the "License");
 | 
			
		||||
you may not use this file except in compliance with the License.
 | 
			
		||||
@@ -16,6 +16,7 @@ limitations under the License.
 | 
			
		||||
 | 
			
		||||
import React, { createRef, KeyboardEvent, ReactNode, SyntheticEvent, TransitionEvent } from 'react';
 | 
			
		||||
import ReactDOM from 'react-dom';
 | 
			
		||||
import classNames from 'classnames';
 | 
			
		||||
import { Room } from 'matrix-js-sdk/src/models/room';
 | 
			
		||||
import { EventType } from 'matrix-js-sdk/src/@types/event';
 | 
			
		||||
import { MatrixEvent } from 'matrix-js-sdk/src/models/event';
 | 
			
		||||
@@ -1018,11 +1019,15 @@ export default class MessagePanel extends React.Component<IProps, IState> {
 | 
			
		||||
            />;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        const classes = classNames(this.props.className, {
 | 
			
		||||
            "mx_MessagePanel_narrow": this.context.narrow,
 | 
			
		||||
        });
 | 
			
		||||
 | 
			
		||||
        return (
 | 
			
		||||
            <ErrorBoundary>
 | 
			
		||||
                <ScrollPanel
 | 
			
		||||
                    ref={this.scrollPanel}
 | 
			
		||||
                    className={this.props.className}
 | 
			
		||||
                    className={classes}
 | 
			
		||||
                    onScroll={this.props.onScroll}
 | 
			
		||||
                    onUserScroll={this.props.onUserScroll}
 | 
			
		||||
                    onFillRequest={this.props.onFillRequest}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user