Skip to content

Commit

Permalink
Empty state for TableOpFeed
Browse files Browse the repository at this point in the history
  • Loading branch information
Destiner committed May 17, 2024
1 parent 3df0e6c commit 14d38ad
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/components/TableOpFeed.vue
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,12 @@
</tr>
</thead>
<tbody>
<div
v-if="ops.length === 0"
class="empty"
>
No rows to display.
</div>
<TransitionGroup name="list">
<tr
v-for="row in table.getRowModel().rows"
Expand Down Expand Up @@ -338,4 +344,12 @@ tbody {
.hide {
display: none;
}
.empty {
display: flex;
align-items: center;
justify-content: center;
height: 120px;
color: var(--color-text-secondary);
}
</style>

0 comments on commit 14d38ad

Please sign in to comment.