UX: use 'last poster' avatar for mobile topics list
This commit is contained in:
parent
574805b682
commit
bde4bc52d7
3 changed files with 4 additions and 8 deletions
app/assets
javascripts/discourse
stylesheets/mobile
|
@ -8,7 +8,7 @@ const Topic = RestModel.extend({
|
||||||
message: null,
|
message: null,
|
||||||
errorLoading: false,
|
errorLoading: false,
|
||||||
|
|
||||||
creator: Ember.computed.alias("posters.firstObject.user"),
|
lastPoster: Ember.computed.alias("posters.lastObject.user"),
|
||||||
|
|
||||||
@computed('fancy_title')
|
@computed('fancy_title')
|
||||||
fancyTitle(title) {
|
fancyTitle(title) {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<td>
|
<td>
|
||||||
<div class='creator pull-left'>
|
<div class='pull-left'>
|
||||||
<a href="{{content.lastPostUrl}}">{{avatar topic.creator imageSize="large"}}</a>
|
<a href="{{content.lastPostUrl}}">{{avatar topic.lastPoster imageSize="large"}}</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class='right'>
|
<div class='right'>
|
||||||
|
|
|
@ -63,12 +63,8 @@
|
||||||
|
|
||||||
.topic-list {
|
.topic-list {
|
||||||
|
|
||||||
.creator {
|
|
||||||
margin-left: 5px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.right {
|
.right {
|
||||||
margin-left: 60px;
|
margin-left: 55px;
|
||||||
}
|
}
|
||||||
|
|
||||||
> tbody > tr {
|
> tbody > tr {
|
||||||
|
|
Reference in a new issue