Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
abordage committed Jul 6, 2022
1 parent b8637f3 commit c55d730
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/js/card.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion resources/js/components/Card.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<card class="px-4 py-4">
<h2 v-if="card.title" class="text-lg px-2 mb-2">{{ card.title }}</h2>

<table class="w-full table-default" cellpadding="0" cellspacing="0" data-testid="resource-table">
<table v-if="card.rows.length" class="w-full table-default" cellpadding="0" cellspacing="0" data-testid="resource-table">
<tr v-for="item in card.rows" class="group">

<td class="
Expand Down Expand Up @@ -57,6 +57,10 @@
</td>
</tr>
</table>

<div v-if="card.rows.length === 0" class="px-2 text-xs text-gray-400">
{{ __('There are no fields to display.') }}
</div>
</card>
</template>

Expand Down

0 comments on commit c55d730

Please sign in to comment.