diff options
author | Mashiro <moezhx@outlook.com> | 2021-10-21 12:24:34 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-21 06:24:34 +0200 |
commit | b58d32cfe259d95ef28a61cbd863336350f2a3d9 (patch) | |
tree | b8dda438fb28102ee0cfd57955a7c08b2124db55 /app | |
parent | 3f9b28ce26ee6ec3b1657da01c9a90ecbcb4427a (diff) |
Enhance dashboard styles (#16884)
* Display sparkline graph on Chrome * Heatmap auto overflow * Change grid columns number on small screen * Please codeclimate bot * Remove graph height
Diffstat (limited to 'app')
-rw-r--r-- | app/javascript/styles/mastodon/admin.scss | 8 | ||||
-rw-r--r-- | app/javascript/styles/mastodon/dashboard.scss | 4 |
2 files changed, 12 insertions, 0 deletions
diff --git a/app/javascript/styles/mastodon/admin.scss b/app/javascript/styles/mastodon/admin.scss index e903fea56..489646e1f 100644 --- a/app/javascript/styles/mastodon/admin.scss +++ b/app/javascript/styles/mastodon/admin.scss @@ -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; diff --git a/app/javascript/styles/mastodon/dashboard.scss b/app/javascript/styles/mastodon/dashboard.scss index cad5a105b..5e900e8c5 100644 --- a/app/javascript/styles/mastodon/dashboard.scss +++ b/app/javascript/styles/mastodon/dashboard.scss @@ -61,6 +61,10 @@ 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; |