You've already forked matrix-react-sdk
							
							
				mirror of
				https://github.com/matrix-org/matrix-react-sdk.git
				synced 2025-11-03 00:33:22 +03:00 
			
		
		
		
	Added the LTR support for the dialpad
This commit is contained in:
		@@ -30,8 +30,18 @@ limitations under the License.
 | 
			
		||||
    height: 1.5em;
 | 
			
		||||
    font-size: 18px;
 | 
			
		||||
    font-weight: 600;
 | 
			
		||||
    max-width: 155px;
 | 
			
		||||
    overflow: auto;
 | 
			
		||||
    max-width: 150px;
 | 
			
		||||
    border: none;
 | 
			
		||||
    margin: 0px;
 | 
			
		||||
  
 | 
			
		||||
}
 | 
			
		||||
.mx_DialPadContextMenu_dialled input{
 | 
			
		||||
    font-size: 18px;
 | 
			
		||||
    font-weight: 600;
 | 
			
		||||
    overflow: hidden;
 | 
			
		||||
    text-align: left;
 | 
			
		||||
    direction: rtl;
 | 
			
		||||
    background-color: rgb(0, 0, 0, 0);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.mx_DialPadContextMenu_dialPad {
 | 
			
		||||
 
 | 
			
		||||
@@ -18,6 +18,7 @@ import React from 'react';
 | 
			
		||||
import { _t } from '../../../languageHandler';
 | 
			
		||||
import { ContextMenu, IProps as IContextMenuProps } from '../../structures/ContextMenu';
 | 
			
		||||
import { MatrixCall } from 'matrix-js-sdk/src/webrtc/call';
 | 
			
		||||
import Field from "../elements/Field";
 | 
			
		||||
import Dialpad from '../voip/DialPad';
 | 
			
		||||
import {replaceableComponent} from "../../../utils/replaceableComponent";
 | 
			
		||||
 | 
			
		||||
@@ -44,13 +45,23 @@ export default class DialpadContextMenu extends React.Component<IProps, IState>
 | 
			
		||||
        this.setState({value: this.state.value + digit});
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    onChange = (ev) => {
 | 
			
		||||
        this.setState({value: ev.target.value});
 | 
			
		||||
    }
 | 
			
		||||
    
 | 
			
		||||
 | 
			
		||||
    render() {
 | 
			
		||||
        return <ContextMenu {...this.props}>
 | 
			
		||||
            <div className="mx_DialPadContextMenu_header">
 | 
			
		||||
                <div>
 | 
			
		||||
                    <span className="mx_DialPadContextMenu_title">{_t("Dial pad")}</span>
 | 
			
		||||
                </div>
 | 
			
		||||
                <div className="mx_DialPadContextMenu_dialled">{this.state.value}</div>
 | 
			
		||||
                <form >
 | 
			
		||||
                    <Field className="mx_DialPadContextMenu_dialled"
 | 
			
		||||
                        value={this.state.value} autoFocus={true}
 | 
			
		||||
                        onChange={this.onChange}
 | 
			
		||||
                    />
 | 
			
		||||
                </form>
 | 
			
		||||
            </div>
 | 
			
		||||
            <div className="mx_DialPadContextMenu_horizSep" />
 | 
			
		||||
            <div className="mx_DialPadContextMenu_dialPad">
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user