2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-07 12:02:53 +08:00

FIX: align suggested messages

This commit is contained in:
Joffrey JAFFEUX 2018-03-15 17:51:19 +01:00 committed by GitHub
parent 90291318eb
commit d3943b97df
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 4 deletions

View file

@ -9,7 +9,7 @@ export default Ember.Component.extend({
suggestedTitle(topic) {
const href = this.currentUser && this.currentUser.pmPath(topic);
return topic.get('isPrivateMessage') && href ?
`<a href="${href}">${iconHTML('envelope', { class: 'private-message-glyph' })}</a> ${I18n.t("suggested_topics.pm_title")}` :
`<a href="${href}">${iconHTML('envelope', { class: 'private-message-glyph' })}</a><span>${I18n.t("suggested_topics.pm_title")}</span>` :
I18n.t("suggested_topics.title");
},

View file

@ -1,4 +1,5 @@
<h3>{{{suggestedTitle}}}</h3>
<h3 class="suggested-topics-title">{{{suggestedTitle}}}</h3>
<div class="topics">
{{#if topic.isPrivateMessage}}
{{basic-topic-list
@ -9,4 +10,5 @@
{{basic-topic-list topics=topic.suggestedTopics}}
{{/if}}
</div>
<h3 class='suggested-topics-message'>{{{browseMoreMessage}}}</h3>
<h3 class="suggested-topics-message">{{{browseMoreMessage}}}</h3>

View file

@ -145,7 +145,6 @@ a.badge-category {
.badge-wrapper {
float: left;
}
}
.has-pending-posts {
@ -183,6 +182,11 @@ a.badge-category {
max-width: 150px;
}
#suggested-topics .suggested-topics-title {
display: flex;
align-items: center;
}
.topic-unsubscribe {
.notifications-button {
display: inline-block;