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

Commit 7a1344c

Browse files
committed
update message context texts and icons
Signed-off-by: Michael Weimann <[email protected]>
1 parent 7fb9a00 commit 7a1344c

File tree

4 files changed

+44
-17
lines changed

4 files changed

+44
-17
lines changed

res/css/views/context_menus/_MessageContextMenu.scss

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,15 +42,15 @@ limitations under the License.
4242
}
4343

4444
.mx_MessageContextMenu_iconLink::before {
45-
mask-image: url('$(res)/img/element-icons/message/link.svg');
45+
mask-image: url('$(res)/img/element-icons/link.svg');
4646
}
4747

4848
.mx_MessageContextMenu_iconPermalink::before {
4949
mask-image: url('$(res)/img/element-icons/room/share.svg');
5050
}
5151

5252
.mx_MessageContextMenu_iconUnhidePreview::before {
53-
mask-image: url('$(res)/img/feather-customised/eye.svg');
53+
mask-image: url('$(res)/img/element-icons/settings/appearance.svg');
5454
}
5555

5656
.mx_MessageContextMenu_iconForward::before {
@@ -62,7 +62,7 @@ limitations under the License.
6262
}
6363

6464
.mx_MessageContextMenu_iconResend::before {
65-
mask-image: url('$(res)/img/element-icons/message/repeat.svg');
65+
mask-image: url('$(res)/img/element-icons/retry.svg');
6666
}
6767

6868
.mx_MessageContextMenu_iconSource::before {
Lines changed: 31 additions & 3 deletions
Loading

src/components/views/context_menus/MessageContextMenu.js

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ export default class MessageContextMenu extends React.Component {
306306
const viewSourceButton = (
307307
<IconizedContextMenuOption
308308
iconClassName="mx_MessageContextMenu_iconSource"
309-
label={_t("View Source")}
309+
label={_t("View source")}
310310
onClick={this.onViewSourceClick}
311311
/>
312312
);
@@ -316,7 +316,7 @@ export default class MessageContextMenu extends React.Component {
316316
unhidePreviewButton = (
317317
<IconizedContextMenuOption
318318
iconClassName="mx_MessageContextMenu_iconUnhidePreview"
319-
label={_t("Unhide Preview")}
319+
label={_t("Show preview")}
320320
onClick={this.onUnhidePreviewClick}
321321
/>
322322
);
@@ -351,8 +351,7 @@ export default class MessageContextMenu extends React.Component {
351351
}
352352

353353
// Bridges can provide a 'external_url' to link back to the source.
354-
if (true ||
355-
typeof (mxEvent.event.content.external_url) === "string" &&
354+
if (typeof (mxEvent.event.content.external_url) === "string" &&
356355
isUrlPermitted(mxEvent.event.content.external_url)
357356
) {
358357
externalURLButton = (
@@ -372,7 +371,7 @@ export default class MessageContextMenu extends React.Component {
372371
collapseReplyThread = (
373372
<IconizedContextMenuOption
374373
iconClassName="mx_MessageContextMenu_iconCollapse"
375-
label={_t("Collapse Reply Thread")}
374+
label={_t("Collapse reply thread")}
376375
onClick={this.onCollapseReplyThreadClick}
377376
/>
378377
);
@@ -383,7 +382,7 @@ export default class MessageContextMenu extends React.Component {
383382
reportEventButton = (
384383
<IconizedContextMenuOption
385384
iconClassName="mx_MessageContextMenu_iconReport"
386-
label={_t("Report Content")}
385+
label={_t("Report")}
387386
onClick={this.onReportEventClick}
388387
/>
389388
);
@@ -397,8 +396,8 @@ export default class MessageContextMenu extends React.Component {
397396
{permalinkButton}
398397
{reportEventButton}
399398
{externalURLButton}
400-
{viewSourceButton}
401399
{unhidePreviewButton}
400+
{viewSourceButton}
402401
{resendReactionsButton}
403402
{collapseReplyThread}
404403
</IconizedContextMenuOptionList>

src/i18n/strings/en_EN.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1830,7 +1830,7 @@
18301830
"Saturday": "Saturday",
18311831
"Today": "Today",
18321832
"Yesterday": "Yesterday",
1833-
"View Source": "View Source",
1833+
"View source": "View source",
18341834
"Messages here are end-to-end encrypted. Verify %(displayName)s in their profile - tap on their avatar.": "Messages here are end-to-end encrypted. Verify %(displayName)s in their profile - tap on their avatar.",
18351835
"Messages in this room are end-to-end encrypted. When people join, you can verify them in their profile, just tap on their avatar.": "Messages in this room are end-to-end encrypted. When people join, you can verify them in their profile, just tap on their avatar.",
18361836
"Encryption enabled": "Encryption enabled",
@@ -2332,7 +2332,7 @@
23322332
"This room is dedicated to illegal or toxic content or the moderators fail to moderate illegal or toxic content.\n This will be reported to the administrators of %(homeserver)s.": "This room is dedicated to illegal or toxic content or the moderators fail to moderate illegal or toxic content.\n This will be reported to the administrators of %(homeserver)s.",
23332333
"Any other reason. Please describe the problem.\nThis will be reported to the room moderators.": "Any other reason. Please describe the problem.\nThis will be reported to the room moderators.",
23342334
"Please pick a nature and describe what makes this message abusive.": "Please pick a nature and describe what makes this message abusive.",
2335-
"Report Content": "Report Content",
2335+
"Report": "Report",
23362336
"Disagree": "Disagree",
23372337
"Toxic Behaviour": "Toxic Behaviour",
23382338
"Illegal Content": "Illegal Content",
@@ -2502,9 +2502,9 @@
25022502
"Forward Message": "Forward",
25032503
"Unpin Message": "Unpin Message",
25042504
"Pin Message": "Pin Message",
2505-
"Unhide Preview": "Unhide Preview",
2505+
"Show preview": "Show preview",
25062506
"Source URL": "Source URL",
2507-
"Collapse Reply Thread": "Collapse Reply Thread",
2507+
"Collapse reply thread": "Collapse reply thread",
25082508
"Clear status": "Clear status",
25092509
"Update status": "Update status",
25102510
"Set status": "Set status",

0 commit comments

Comments
 (0)