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 
			
		
		
		
	Merge pull request #6618 from SimonBrandner/fix/long-names-call-tiles
Fix long display names in call tiles
This commit is contained in:
		@@ -95,17 +95,23 @@ limitations under the License.
 | 
			
		||||
            flex-direction: row;
 | 
			
		||||
            align-items: center;
 | 
			
		||||
            margin-left: 12px;
 | 
			
		||||
            min-width: 0;
 | 
			
		||||
 | 
			
		||||
            .mx_CallEvent_info_basic {
 | 
			
		||||
                display: flex;
 | 
			
		||||
                flex-direction: column;
 | 
			
		||||
                margin-left: 10px; // To match mx_CallEvent
 | 
			
		||||
                min-width: 0;
 | 
			
		||||
 | 
			
		||||
                .mx_CallEvent_sender {
 | 
			
		||||
                    font-weight: 600;
 | 
			
		||||
                    font-size: 1.5rem;
 | 
			
		||||
                    line-height: 1.8rem;
 | 
			
		||||
                    margin-bottom: 3px;
 | 
			
		||||
 | 
			
		||||
                    overflow: hidden;
 | 
			
		||||
                    white-space: nowrap;
 | 
			
		||||
                    text-overflow: ellipsis;
 | 
			
		||||
                }
 | 
			
		||||
 | 
			
		||||
                .mx_CallEvent_type {
 | 
			
		||||
@@ -142,6 +148,7 @@ limitations under the License.
 | 
			
		||||
            color: $secondary-fg-color;
 | 
			
		||||
            margin-right: 16px;
 | 
			
		||||
            gap: 8px;
 | 
			
		||||
            min-width: max-content;
 | 
			
		||||
 | 
			
		||||
            .mx_CallEvent_content_button {
 | 
			
		||||
                height: 24px;
 | 
			
		||||
 
 | 
			
		||||
@@ -27,7 +27,7 @@ import classNames from 'classnames';
 | 
			
		||||
import AccessibleTooltipButton from '../elements/AccessibleTooltipButton';
 | 
			
		||||
import { formatCallTime } from "../../../DateUtils";
 | 
			
		||||
 | 
			
		||||
const MAX_NON_NARROW_WIDTH = 400 / 70 * 100;
 | 
			
		||||
const MAX_NON_NARROW_WIDTH = 450 / 70 * 100;
 | 
			
		||||
 | 
			
		||||
interface IProps {
 | 
			
		||||
    mxEvent: MatrixEvent;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user