UX: update emoji, better icon match

This commit is contained in:
awesomerobot 2025-03-20 11:23:12 -04:00
parent 82bf4e797c
commit bb7108a296
6 changed files with 10 additions and 10 deletions

View File

@ -8,11 +8,11 @@
<img
src={{this.emojiUrl}}
title={{this.userNotesTitle}}
alt="pencil"
alt=""
class="emoji"
/>
{{else}}
{{d-icon "note-sticky"}}
{{d-icon "pen-to-square"}}
{{/if}}
</DButton>
{{/if}}

View File

@ -15,7 +15,7 @@ export default {
component.setProperties({
userNotesCount,
emojiEnabled: component.siteSettings.enable_emoji,
emojiUrl: emojiUrlFor("pencil"),
emojiUrl: emojiUrlFor("memo"),
userNotesTitle: i18n("user_notes.show", { count: userNotesCount }),
});
},

View File

@ -43,9 +43,9 @@ export default class extends Component {
class="btn-flat"
>
{{#if this.siteSettings.enable_emoji}}
{{emoji "pencil"}}
{{emoji "memo"}}
{{else}}
{{icon "note-sticky"}}
{{icon "pen-to-square"}}
{{/if}}
</DButton>
{{/if}}

View File

@ -1,6 +1,6 @@
<DButton
class="btn-default show-user-notes-btn"
@action={{@show}}
@icon="pencil"
@icon="pen-to-square"
@translatedLabel={{this.label}}
/>

View File

@ -70,7 +70,7 @@ export default {
});
api.addPostAdminMenuButton((attrs) => {
return {
icon: "pencil",
icon: "pen-to-square",
label: "user_notes.attach",
action: (post) => {
showUserNotes(
@ -103,9 +103,9 @@ export default {
html() {
if (this.siteSettings.enable_emoji) {
return this.attach("emoji", { name: "pencil" });
return this.attach("emoji", { name: "memo" });
} else {
return iconNode("note-sticky");
return iconNode("pen-to-square");
}
},
});

View File

@ -11,7 +11,7 @@ enabled_site_setting :user_notes_enabled
register_asset "stylesheets/user_notes.scss"
register_svg_icon "note-sticky"
register_svg_icon "pen-to-square"
after_initialize do
require_dependency "user"