UX: Show the `Dismiss New` button at the top of the topics. (#12403)

We want to be consistent across desktop and mobile.
This commit is contained in:
Roman Rizzi 2021-03-16 10:07:04 -03:00 committed by GitHub
parent e10a74694a
commit dc3af285b2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 22 additions and 1 deletions

View File

@ -1,3 +1,24 @@
{{#if showDismissAtTop}}
<div class="row dismiss-container-top">
{{#if showDismissRead}}
{{d-button
class="btn-default dismiss-read"
id="dismiss-topics-top"
action=(action "dismissReadPosts")
title="topics.bulk.dismiss_tooltip"
label="topics.bulk.dismiss_button"}}
{{/if}}
{{#if showResetNew}}
{{d-button
class="btn-default dismiss-read"
id="dismiss-new-top"
action=(action "resetNew")
icon="check"
label="topics.bulk.dismiss_new"}}
{{/if}}
</div>
{{/if}}
{{#discovery-topics-list model=model refresh=(action "refresh") incomingCount=topicTrackingState.incomingCount as |discoveryTopicList|}} {{#discovery-topics-list model=model refresh=(action "refresh") incomingCount=topicTrackingState.incomingCount as |discoveryTopicList|}}
{{#if top}} {{#if top}}
<div class="top-lists"> <div class="top-lists">

View File

@ -428,7 +428,7 @@ tr.category-topic-link {
} }
button.dismiss-read { button.dismiss-read {
margin-right: 10px; margin-bottom: 10px;
} }
// base defines extra padding for easier click/top of title field // base defines extra padding for easier click/top of title field