Skip to content

Commit 49a8a0d

Browse files
[Bugfix] update text container width to cap text for longer locale strings (#5579)
* update text container width to cap text for longer locale strings * Change files * up spacing for REM
1 parent 32a688c commit 49a8a0d

File tree

3 files changed

+19
-1
lines changed

3 files changed

+19
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"type": "patch",
3+
"area": "fix",
4+
"workstream": "Video Effects",
5+
"comment": "update text container width to cap text for longer locale strings",
6+
"packageName": "@azure/communication-react",
7+
"email": "[email protected]",
8+
"dependentChangeType": "patch"
9+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"type": "patch",
3+
"area": "fix",
4+
"workstream": "Video Effects",
5+
"comment": "update text container width to cap text for longer locale strings",
6+
"packageName": "@azure/communication-react",
7+
"email": "[email protected]",
8+
"dependentChangeType": "patch"
9+
}

packages/react-components/src/components/VideoEffects/VideoEffectsItem.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ export const _VideoEffectsItem = (props: _VideoEffectsItemProps): JSX.Element =>
128128
const backgroundImage = props.backgroundProps?.url;
129129
const iconContainerStyles = mergeStyles({ height: '1.25rem' }, props.styles?.iconContainer);
130130
const textContainerStyles = mergeStyles(
131-
{ height: '1.25rem', width: '100%', overflow: 'hidden' },
131+
{ height: '1.25rem', maxWidth: '4.5rem', overflow: 'hidden' },
132132
props.styles?.textContainer
133133
);
134134

0 commit comments

Comments
 (0)