]> cat aescling's git repositories - mastodon.git/commitdiff
Fix relationship manager on narrow screens (#10293)
authorEugen Rochko <eugen@zeonfederated.com>
Sun, 17 Mar 2019 21:36:54 +0000 (22:36 +0100)
committerGitHub <noreply@github.com>
Sun, 17 Mar 2019 21:36:54 +0000 (22:36 +0100)
At the cost of functionality

app/javascript/styles/mastodon/tables.scss

index d3a0ea03d026efcc7da68e56e3397b9e1fbc7963..11ac6dfeb1595ca2b325cfc0dd8a92224fc3c5d6 100644 (file)
@@ -149,6 +149,10 @@ a.table-action-link {
           margin-top: 0;
         }
       }
+
+      @media screen and (max-width: $no-gap-breakpoint) {
+        display: none;
+      }
     }
 
     &__actions,
@@ -170,6 +174,10 @@ a.table-action-link {
       text-align: right;
       padding-right: 16px - 5px;
     }
+
+    @media screen and (max-width: $no-gap-breakpoint) {
+      display: none;
+    }
   }
 
   &__row {
@@ -177,6 +185,12 @@ a.table-action-link {
     border-top: 0;
     background: darken($ui-base-color, 4%);
 
+    @media screen and (max-width: $no-gap-breakpoint) {
+      &:first-child {
+        border-top: 1px solid darken($ui-base-color, 8%);
+      }
+    }
+
     &:hover {
       background: darken($ui-base-color, 2%);
     }
@@ -215,5 +229,15 @@ a.table-action-link {
     border: 1px solid darken($ui-base-color, 8%);
     border-top: 0;
     box-shadow: none;
+
+    @media screen and (max-width: $no-gap-breakpoint) {
+      border-top: 1px solid darken($ui-base-color, 8%);
+    }
+  }
+
+  @media screen and (max-width: 870px) {
+    .accounts-table tbody td.optional {
+      display: none;
+    }
   }
 }