mirror of
https://github.com/discourse/discourse.git
synced 2025-04-19 16:39:07 +08:00
UX: Always show avatar on mobile topic lists (#15323)
This commit is contained in:
parent
7039046d9e
commit
ad4faf637c
@ -6,8 +6,6 @@ export default Component.extend({
|
||||
loadingMore: alias("topicList.loadingMore"),
|
||||
loading: not("loaded"),
|
||||
|
||||
hideMobileAvatar: true,
|
||||
|
||||
@discourseComputed("topicList.loaded")
|
||||
loaded() {
|
||||
let topicList = this.topicList;
|
||||
|
@ -195,11 +195,6 @@ export default Component.extend({
|
||||
return false;
|
||||
},
|
||||
|
||||
@discourseComputed("expandPinned", "hideMobileAvatar")
|
||||
showMobileAvatar(expandPinned, hideMobileAvatar) {
|
||||
return !(hideMobileAvatar || expandPinned);
|
||||
},
|
||||
|
||||
showEntrance,
|
||||
|
||||
click(e) {
|
||||
|
@ -2,7 +2,6 @@
|
||||
{{#if topics}}
|
||||
{{topic-list
|
||||
showPosters=showPosters
|
||||
hideMobileAvatar=hideMobileAvatar
|
||||
hideCategory=hideCategory
|
||||
topics=topics
|
||||
expandExcerpts=expandExcerpts
|
||||
|
@ -36,7 +36,6 @@
|
||||
showTopicPostBadges=showTopicPostBadges
|
||||
hideCategory=hideCategory
|
||||
showPosters=showPosters
|
||||
hideMobileAvatar=hideMobileAvatar
|
||||
showLikes=showLikes
|
||||
showOpLikes=showOpLikes
|
||||
expandGloballyPinned=expandGloballyPinned
|
||||
|
@ -1,13 +1,9 @@
|
||||
<td class="topic-list-data">
|
||||
{{~raw-plugin-outlet name="topic-list-before-columns"}}
|
||||
{{~#if showMobileAvatar}}
|
||||
<div class='pull-left'>
|
||||
<a href="{{topic.lastPostUrl}}" data-user-card="{{topic.last_poster_username}}">{{avatar topic.lastPosterUser imageSize="large"}}</a>
|
||||
</div>
|
||||
<div class='right'>
|
||||
{{else}}
|
||||
<div>
|
||||
{{/if~}}
|
||||
{{!--
|
||||
The `~` syntax strip spaces between the elements, making it produce
|
||||
`<a class=topic-post-badges>Some text</a><span class=topic-post-badges>`,
|
||||
|
Loading…
x
Reference in New Issue
Block a user