From cdded801c5b2798b07415a181197c4473e3141af Mon Sep 17 00:00:00 2001 From: Joffrey JAFFEUX Date: Tue, 6 Feb 2018 22:17:27 +0100 Subject: [PATCH] FIX: correctly shows link to post number when editing --- .../discourse/components/composer-action-title.js.es6 | 8 ++++---- app/assets/stylesheets/common/base/compose.scss | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/app/assets/javascripts/discourse/components/composer-action-title.js.es6 b/app/assets/javascripts/discourse/components/composer-action-title.js.es6 index bc6e0e95bfe..2bc69273004 100644 --- a/app/assets/javascripts/discourse/components/composer-action-title.js.es6 +++ b/app/assets/javascripts/discourse/components/composer-action-title.js.es6 @@ -22,20 +22,20 @@ export default Ember.Component.extend({ return this._formatReplyToTopic(opts.topicLink); } case EDIT: - if (opts.userAvatar && opts.userLink && opts.topicLink) { + if (opts.userAvatar && opts.userLink && opts.postLink) { return this._formatEditUserPost( opts.userAvatar, opts.userLink, - opts.topicLink, + opts.postLink, opts.originalUser ); } }; }, - _formatEditUserPost(userAvatar, userLink, topicLink, originalUser) { + _formatEditUserPost(userAvatar, userLink, postLink, originalUser) { let editTitle = ` - ${topicLink.anchor} + ${postLink.anchor} ${userAvatar} ${userLink.anchor} ${iconHTML("mail-forward", { class: "reply-to-glyph" })} diff --git a/app/assets/stylesheets/common/base/compose.scss b/app/assets/stylesheets/common/base/compose.scss index ead057f8a1f..9c829becd98 100644 --- a/app/assets/stylesheets/common/base/compose.scss +++ b/app/assets/stylesheets/common/base/compose.scss @@ -105,12 +105,12 @@ align-items: center; width: auto; max-width: 100%; - + .avatar { width: 20px; } - .topic-link, .user-link { + .topic-link, .user-link, .post-link { overflow: hidden; text-overflow: ellipsis; white-space: nowrap;