]> cat aescling's git repositories - mastodon.git/commitdiff
Fix batch actions being hidden from mobile view (#12183)
authorThibG <thib@sitedethib.com>
Thu, 24 Oct 2019 20:46:59 +0000 (22:46 +0200)
committerEugen Rochko <eugen@zeonfederated.com>
Thu, 24 Oct 2019 20:46:59 +0000 (22:46 +0200)
On mobile, batch actions are hidden from the settings/admin interface,
but there are several places those actions can only be performed through
batch actions.

This may not look great, but at least it makes the actions available again.

app/javascript/styles/mastodon/tables.scss
app/views/admin/tags/index.html.haml

index 5a6e10aa4908cdb95b207cb230aa1ac762859543..62f5554ffc0886fc357765574c75836e977c34a2 100644 (file)
@@ -149,10 +149,6 @@ a.table-action-link {
           margin-top: 0;
         }
       }
-
-      @media screen and (max-width: $no-gap-breakpoint) {
-        display: none;
-      }
     }
 
     &__actions,
@@ -174,10 +170,6 @@ a.table-action-link {
       text-align: right;
       padding-right: 16px - 5px;
     }
-
-    @media screen and (max-width: $no-gap-breakpoint) {
-      display: none;
-    }
   }
 
   &__form {
@@ -198,7 +190,7 @@ a.table-action-link {
     background: darken($ui-base-color, 4%);
 
     @media screen and (max-width: $no-gap-breakpoint) {
-      &:first-child {
+      .optional &:first-child {
         border-top: 1px solid darken($ui-base-color, 8%);
       }
     }
@@ -264,6 +256,13 @@ a.table-action-link {
     }
   }
 
+  &.optional .batch-table__toolbar,
+  &.optional .batch-table__row__select {
+    @media screen and (max-width: $no-gap-breakpoint) {
+      display: none;
+    }
+  }
+
   .status__content {
     padding-top: 0;
 
index 8b1182dbb11f70954bc5ce03f07b6dd3bff5966e..b29991328e2d4ce9674e409e826a9391409a33be 100644 (file)
@@ -48,7 +48,7 @@
   - Admin::FilterHelper::TAGS_FILTERS.each do |key|
     = hidden_field_tag key, params[key] if params[key].present?
 
-  .batch-table
+  .batch-table.optional
     .batch-table__toolbar
       %label.batch-table__toolbar__select.batch-checkbox-all
         = check_box_tag :batch_checkbox_all, nil, false