]> cat aescling's git repositories - mastodon.git/commitdiff
[Glitch] Fix relationship manager on narrow screens
authorEugen Rochko <eugen@zeonfederated.com>
Sun, 17 Mar 2019 21:36:54 +0000 (22:36 +0100)
committerThibaut Girka <thib@sitedethib.com>
Mon, 18 Mar 2019 17:07:03 +0000 (18:07 +0100)
Port 7130d6e51291b08df59f9580c7d6e1c1d97e7dad to glitch-soc

app/javascript/flavours/glitch/styles/tables.scss

index 11845fb17ce7350e2e2e9ec6f3470a0da7b36b91..154844665ef2663d55e518efa1e338ac455e4f86 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%);
     }
@@ -211,5 +225,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;
+    }
   }
 }