mirror of
https://gitcode.com/GitHub_Trending/ji/jitsi-meet.git
synced 2025-12-30 11:22:31 +00:00
fix(chat): restructure chat messages
Signed-off-by: Joshua Irmer <irmer@gonicus.de>
This commit is contained in:
committed by
Calinteodor
parent
cfbdbd4783
commit
816e991ae5
@@ -15,6 +15,11 @@ interface IProps {
|
||||
*/
|
||||
gifEnabled: boolean;
|
||||
|
||||
/**
|
||||
* Message decoration for screen reader.
|
||||
*/
|
||||
screenReaderHelpText?: string;
|
||||
|
||||
/**
|
||||
* The body of the message.
|
||||
*/
|
||||
@@ -91,10 +96,18 @@ class Message extends Component<IProps> {
|
||||
* @returns {ReactElement}
|
||||
*/
|
||||
render() {
|
||||
const { screenReaderHelpText } = this.props;
|
||||
|
||||
return (
|
||||
<>
|
||||
<p>
|
||||
{ screenReaderHelpText && (
|
||||
<span className = 'sr-only'>
|
||||
{screenReaderHelpText}
|
||||
</span>
|
||||
) }
|
||||
|
||||
{ this._processMessage() }
|
||||
</>
|
||||
</p>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user