Skip to content

Commit

Permalink
Add no-toolbar state for "nothing here" batch table views (mastodon…
Browse files Browse the repository at this point in the history
  • Loading branch information
mjankowski authored Sep 27, 2024
1 parent 11a12e5 commit 24d3ce7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions app/javascript/styles/mastodon/tables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,10 @@ a.table-action-link {
@media screen and (max-width: $no-gap-breakpoint) {
border-top: 1px solid var(--background-border-color);
}

&--no-toolbar {
border-top: 1px solid var(--background-border-color);
}
}

@media screen and (width <= 870px) {
Expand Down
2 changes: 1 addition & 1 deletion app/views/admin/tags/index.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
.batch-table
.batch-table__body
- if @tags.empty?
= nothing_here 'nothing-here--under-tabs'
= nothing_here 'nothing-here--under-tabs nothing-here--no-toolbar'
- else
= render partial: 'tag', collection: @tags

Expand Down

0 comments on commit 24d3ce7

Please sign in to comment.