From 43b607f71572bd3778605d53557073d38d738dba Mon Sep 17 00:00:00 2001 From: ElementRobot Date: Thu, 18 Jan 2024 18:26:27 +0100 Subject: [PATCH] [Backport staging] Fixed shield alignment on message Input (#12155) Co-authored-by: Manan Sadana --- res/css/views/rooms/_MessageComposer.pcss | 4 +++- src/components/views/rooms/MessageComposer.tsx | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/res/css/views/rooms/_MessageComposer.pcss b/res/css/views/rooms/_MessageComposer.pcss index 56a7da7ec6..b6e97fac39 100644 --- a/res/css/views/rooms/_MessageComposer.pcss +++ b/res/css/views/rooms/_MessageComposer.pcss @@ -79,7 +79,9 @@ limitations under the License. .mx_MessageComposer_composecontrols { width: 100%; } - +.mx_MessageComposer_e2eIconWrapper { + height: 12px; /* Match the height of the E2E icon for alignment */ +} .mx_MessageComposer_e2eIcon.mx_E2EIcon { position: absolute; left: 20px; diff --git a/src/components/views/rooms/MessageComposer.tsx b/src/components/views/rooms/MessageComposer.tsx index 53e05e69a1..f9aae433fe 100644 --- a/src/components/views/rooms/MessageComposer.tsx +++ b/src/components/views/rooms/MessageComposer.tsx @@ -475,7 +475,9 @@ export class MessageComposer extends React.Component { public render(): React.ReactNode { const hasE2EIcon = Boolean(!this.state.isWysiwygLabEnabled && this.props.e2eStatus); const e2eIcon = hasE2EIcon && ( - +
+ +
); const controls: ReactNode[] = [];