Skip to content

Commit

Permalink
Fix relationship manager on narrow screens (mastodon#10293)
Browse files Browse the repository at this point in the history
At the cost of functionality
  • Loading branch information
Gargron authored and hiyuki2578 committed Oct 2, 2019
1 parent 0ff6952 commit d188f0c
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions app/javascript/styles/mastodon/tables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,10 @@ a.table-action-link {
margin-top: 0;
}
}

@media screen and (max-width: $no-gap-breakpoint) {
display: none;
}
}

&__actions,
Expand All @@ -170,13 +174,23 @@ a.table-action-link {
text-align: right;
padding-right: 16px - 5px;
}

@media screen and (max-width: $no-gap-breakpoint) {
display: none;
}
}

&__row {
border: 1px solid darken($ui-base-color, 8%);
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%);
}
Expand Down Expand Up @@ -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;
}
}
}

0 comments on commit d188f0c

Please sign in to comment.