Skip to content

Commit

Permalink
IMPROVE: mobile non-tiles meta
Browse files Browse the repository at this point in the history
  • Loading branch information
merefield committed Sep 12, 2022
1 parent bfa1f60 commit 73df618
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 22 deletions.
20 changes: 12 additions & 8 deletions javascripts/discourse/templates/mobile/list/topic-list-item.hbr
Expand Up @@ -78,14 +78,18 @@
{{raw "list/post-count-or-badges" topic=topic postBadgesEnabled=showTopicPostBadges}}
</div>
<div class="topic-item-stats clearfix">
{{#unless hideCategory}}
{{~raw-plugin-outlet name="topic-list-before-category"}}
<div class='category'>
{{category-link topic.category}}
</div>
{{/unless}}
{{discourse-tags topic mode="list"}}
<div class="pull-right">
<div class="category-and-tags">
{{#unless hideCategory}}
{{~raw-plugin-outlet name="topic-list-before-category"}}
<span class='category'>
{{category-link topic.category}}
</span>
{{/unless}}
<span class='tags'>
{{discourse-tags topic mode="list"}}
</span>
</div>
<div class="hang-right">
<div class="keep-in-line">
{{#if showActions}}
{{raw "list/topic-actions" likeCount=likeCount topicActions=topicActions}}
Expand Down
38 changes: 24 additions & 14 deletions mobile/mobile.scss
Expand Up @@ -9,24 +9,35 @@

.right {
.topic-item-stats {
display:unset;
}
display:grid;
grid-template-columns: auto 150px;
grid-template-areas:
"catandtags actionandmeta";

.category-and-tags {
grid-area: catandtags;
display: flex-wrap;
}

.main-link {
margin-bottom: 8px;
}
}
.hang-right {
grid-area: actionandmeta;
align-self: end;
justify-self: right;

.pull-right {
.keep-in-line {
display: inline-block;
margin-top: 4px;
.keep-in-line {
display: inline-block;

.num {
text-align: right;
float: right;
.num {
text-align: right;
float: right;
}
}
}
}

.main-link {
margin-bottom: 8px;
}
}

.topic-details {
Expand Down Expand Up @@ -75,7 +86,6 @@
.discourse-tags {
float: initial;
clear: initial;
margin-right: 30px;
flex-wrap: wrap;
}
}
Expand Down

0 comments on commit 73df618

Please sign in to comment.