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

Updated ViewSource.tsx #9967

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
Changes in [3.64.2](https://github.com/matrix-org/matrix-react-sdk/releases/tag/v3.64.2) (2023-01-20)
Changes in 3.64.3
=====================================================================================================

## ✨ Features
* Applied monospace font to maximize readability, room and message IDs in the view event source dialogue.

Changes in [3.64.2](https://github.com/matrix-org/matrix-react-sdk/releases/tag/v3.64.2) (2023-01-20)
=====================================================================================================

## 🐛 Bug Fixes
Expand Down
4 changes: 2 additions & 2 deletions src/components/structures/ViewSource.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -153,10 +153,10 @@ export default class ViewSource extends React.Component<IProps, IState> {
<BaseDialog className="mx_ViewSource" onFinished={this.props.onFinished} title={_t("View Source")}>
<div className="mx_ViewSource_header">
<CopyableText getTextToCopy={() => roomId} border={false}>
{_t("Room ID: %(roomId)s", { roomId })}
{_t("Room ID: %(roomId)s", <span style='font-family: monospace'>{ roomId }</span>)}
</CopyableText>
<CopyableText getTextToCopy={() => eventId} border={false}>
{_t("Event ID: %(eventId)s", { eventId })}
{_t("Event ID: %(eventId)s", <span style='font-family: monospace'>{ eventId }</span>)}
</CopyableText>
{mxEvent.threadRootId && (
<CopyableText getTextToCopy={() => mxEvent.threadRootId!} border={false}>
Expand Down