UX: We don't have bulk select on mobile, so we should hide the button

UX: We don’t have bulk select on mobile, so we should hide the button

diff --git a/app/assets/javascripts/discourse/templates/user/messages.hbs b/app/assets/javascripts/discourse/templates/user/messages.hbs
index c797016..157630c 100644
--- a/app/assets/javascripts/discourse/templates/user/messages.hbs
+++ b/app/assets/javascripts/discourse/templates/user/messages.hbs
@@ -58,11 +58,14 @@
 <section class='user-right messages'>
 
 <div class="list-actions">
-    {{#if showToggleBulkSelect}}
-      <button {{action "toggleBulkSelect"}} class="btn btn-default bulk-select no-text" title="{{i18n "user.messages.bulk_select"}}">
-        {{d-icon "list"}}
-      </button>
-    {{/if}}
+  
+    {{#unless site.mobileView}}
+      {{#if showToggleBulkSelect}}
+        <button {{action "toggleBulkSelect"}} class="btn btn-default bulk-select no-text" title="{{i18n "user.messages.bulk_select"}}">
+          {{d-icon "list"}}
+        </button>
+      {{/if}}
+    {{/unless}}
 
     {{#if site.mobileView}}
       {{#if showNewPM}}

GitHub sha: 3b7ac3f6

2 Likes

I don’t think this has worked in years… but the button has persisted. We should consider adding bulk select to mobile at some point?

1 Like