Browse Source

Add `no-toolbar` state for "nothing here" batch table views (#32128)

dariusk-working/4_3_0
Matt Jankowski 1 year ago committed by GitHub
parent
commit
24d3ce7bab
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 4
      app/javascript/styles/mastodon/tables.scss
  2. 2
      app/views/admin/tags/index.html.haml

4
app/javascript/styles/mastodon/tables.scss

@ -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) {

2
app/views/admin/tags/index.html.haml

@ -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

Loading…
Cancel
Save