Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Show empty stream message using :last-child pseudoselector
- Loading branch information
1 parent
a5d7aa7
commit cbdda42
Showing
1 changed file
with
1 addition
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 comment
on commit cbdda42
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please note that you will still see the table headers when there are no streamed items. When I first had the idea, I had <ul>
/<ol>
and <li>
elements in mind where it would be much less of an issue or even desired behavior. I ended up applying the idea to the .table
core component purely out of convenience since that was what was available in a newly generated Phoenix app.
<tr class="hidden only:table-row"><td>No Streamed Items</td></tr>
https://elixirforum.com/t/stream-empty-state/57219/15?u=codeanpeace