Skip to content

Commit 3872872

Browse files
authored
Fix relationship manager on narrow screens (mastodon#10293)
At the cost of functionality
1 parent bfaab20 commit 3872872

1 file changed

Lines changed: 24 additions & 0 deletions

File tree

app/javascript/styles/mastodon/tables.scss

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,10 @@ a.table-action-link {
149149
margin-top: 0;
150150
}
151151
}
152+
153+
@media screen and (max-width: $no-gap-breakpoint) {
154+
display: none;
155+
}
152156
}
153157

154158
&__actions,
@@ -170,13 +174,23 @@ a.table-action-link {
170174
text-align: right;
171175
padding-right: 16px - 5px;
172176
}
177+
178+
@media screen and (max-width: $no-gap-breakpoint) {
179+
display: none;
180+
}
173181
}
174182

175183
&__row {
176184
border: 1px solid darken($ui-base-color, 8%);
177185
border-top: 0;
178186
background: darken($ui-base-color, 4%);
179187

188+
@media screen and (max-width: $no-gap-breakpoint) {
189+
&:first-child {
190+
border-top: 1px solid darken($ui-base-color, 8%);
191+
}
192+
}
193+
180194
&:hover {
181195
background: darken($ui-base-color, 2%);
182196
}
@@ -215,5 +229,15 @@ a.table-action-link {
215229
border: 1px solid darken($ui-base-color, 8%);
216230
border-top: 0;
217231
box-shadow: none;
232+
233+
@media screen and (max-width: $no-gap-breakpoint) {
234+
border-top: 1px solid darken($ui-base-color, 8%);
235+
}
236+
}
237+
238+
@media screen and (max-width: 870px) {
239+
.accounts-table tbody td.optional {
240+
display: none;
241+
}
218242
}
219243
}

0 commit comments

Comments
 (0)