]> cat aescling's git repositories - mastodon.git/commitdiff
Enhance dashboard styles (#16884)
authorMashiro <moezhx@outlook.com>
Thu, 21 Oct 2021 04:24:34 +0000 (12:24 +0800)
committerGitHub <noreply@github.com>
Thu, 21 Oct 2021 04:24:34 +0000 (06:24 +0200)
* Display sparkline graph on Chrome

* Heatmap auto overflow

* Change grid columns number on small screen

* Please codeclimate bot

* Remove graph height

app/javascript/styles/mastodon/admin.scss
app/javascript/styles/mastodon/dashboard.scss

index e903fea56aac6099546ae84b0024908a0ee49772..489646e1fef6c5dadce073d763fd5ea4280a4a3d 100644 (file)
@@ -920,6 +920,13 @@ a.name-tag,
 }
 
 .retention {
+  overflow: auto;
+
+  > h4 {
+    position: sticky;
+    left: 0;
+  }
+
   &__table {
     &__number {
       color: $secondary-text-color;
@@ -1018,6 +1025,7 @@ a.name-tag,
   &__graph {
     position: absolute;
     bottom: 0;
+    width: 100%;
 
     svg {
       display: block;
index cad5a105be769571c9abc3f07aa4eb4734827c95..5e900e8c5135f286a422a1636a6757c0d6229ec5 100644 (file)
   grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
   grid-gap: 10px;
 
+  @media screen and (max-width: 1350px) {
+    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
+  }
+
   &__item {
     &--span-double-column {
       grid-column: span 2;