diff --git a/app/javascript/styles/_utilities.scss b/app/javascript/styles/_utilities.scss index e1a5cb5d..249b170d 100644 --- a/app/javascript/styles/_utilities.scss +++ b/app/javascript/styles/_utilities.scss @@ -9,3 +9,7 @@ .pe-none { pointer-events: none; } + +.empty:not(:only-child) { + display: none; +} diff --git a/app/javascript/styles/components/_inbox-entry.scss b/app/javascript/styles/components/_inbox-entry.scss index b081af69..38cdf4ba 100644 --- a/app/javascript/styles/components/_inbox-entry.scss +++ b/app/javascript/styles/components/_inbox-entry.scss @@ -19,4 +19,4 @@ } } } -} \ No newline at end of file +} diff --git a/app/views/inbox/show.html.haml b/app/views/inbox/show.html.haml index 432ec743..f829ea7e 100644 --- a/app/views/inbox/show.html.haml +++ b/app/views/inbox/show.html.haml @@ -3,7 +3,7 @@ = render "inbox/entry", i: i - if @inbox.empty? - = t(".empty") + %p.empty= t(".empty") - if @more_data_available .d-flex.justify-content-center#paginator