mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-28 04:13:18 +01:00
Limit member label width
This commit is contained in:
@@ -1,11 +1,14 @@
|
||||
// Copyright 2023 Signal Messenger, LLC
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
import React, { useMemo } from 'react';
|
||||
import type { CSSProperties } from 'react';
|
||||
import { Emojify } from './conversation/Emojify.dom.js';
|
||||
import { bidiIsolate } from '../util/unicodeBidi.std.js';
|
||||
|
||||
export type UserTextProps = Readonly<{
|
||||
text: string;
|
||||
fontSizeOverride?: number;
|
||||
style?: CSSProperties;
|
||||
}>;
|
||||
|
||||
export function UserText(props: UserTextProps): React.JSX.Element {
|
||||
@@ -14,7 +17,11 @@ export function UserText(props: UserTextProps): React.JSX.Element {
|
||||
}, [props.text]);
|
||||
return (
|
||||
<span dir="auto">
|
||||
<Emojify text={normalizedText} />
|
||||
<Emojify
|
||||
fontSizeOverride={props.fontSizeOverride}
|
||||
style={props.style}
|
||||
text={normalizedText}
|
||||
/>
|
||||
</span>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user