Skip to content
This repository has been archived by the owner on Dec 21, 2023. It is now read-only.

Commit

Permalink
Enhance dashboard styles (mastodon#16884)
Browse files Browse the repository at this point in the history
* Display sparkline graph on Chrome

* Heatmap auto overflow

* Change grid columns number on small screen

* Please codeclimate bot

* Remove graph height
  • Loading branch information
mashirozx authored Oct 21, 2021
1 parent 3f9b28c commit b58d32c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
8 changes: 8 additions & 0 deletions app/javascript/styles/mastodon/admin.scss
Original file line number Diff line number Diff line change
Expand Up @@ -920,6 +920,13 @@ a.name-tag,
}

.retention {
overflow: auto;

> h4 {
position: sticky;
left: 0;
}

&__table {
&__number {
color: $secondary-text-color;
Expand Down Expand Up @@ -1018,6 +1025,7 @@ a.name-tag,
&__graph {
position: absolute;
bottom: 0;
width: 100%;

svg {
display: block;
Expand Down
4 changes: 4 additions & 0 deletions app/javascript/styles/mastodon/dashboard.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit b58d32c

Please sign in to comment.