Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit 43b607f

Browse files
[Backport staging] Fixed shield alignment on message Input (#12155)
Co-authored-by: Manan Sadana <[email protected]>
1 parent 9e16381 commit 43b607f

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

res/css/views/rooms/_MessageComposer.pcss

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,9 @@ limitations under the License.
7979
.mx_MessageComposer_composecontrols {
8080
width: 100%;
8181
}
82-
82+
.mx_MessageComposer_e2eIconWrapper {
83+
height: 12px; /* Match the height of the E2E icon for alignment */
84+
}
8385
.mx_MessageComposer_e2eIcon.mx_E2EIcon {
8486
position: absolute;
8587
left: 20px;

src/components/views/rooms/MessageComposer.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -475,7 +475,9 @@ export class MessageComposer extends React.Component<IProps, IState> {
475475
public render(): React.ReactNode {
476476
const hasE2EIcon = Boolean(!this.state.isWysiwygLabEnabled && this.props.e2eStatus);
477477
const e2eIcon = hasE2EIcon && (
478-
<E2EIcon key="e2eIcon" status={this.props.e2eStatus!} className="mx_MessageComposer_e2eIcon" />
478+
<div className="mx_MessageComposer_e2eIconWrapper">
479+
<E2EIcon key="e2eIcon" status={this.props.e2eStatus!} className="mx_MessageComposer_e2eIcon" />
480+
</div>
479481
);
480482

481483
const controls: ReactNode[] = [];

0 commit comments

Comments
 (0)