Skip to content

Commit

Permalink
Styles order and additional animation
Browse files Browse the repository at this point in the history
  • Loading branch information
mityaua committed Jan 30, 2025
1 parent c2af4d5 commit 7eb4b52
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/components/EmptyTableData.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ import EmptySearch from "@assets/empty-search.svg";
<template>
<div class="flex items-center justify-center py-4 text-lg">
<span>Nothing found</span>
<EmptySearch class="ml-2" width="35" height="35" />
<EmptySearch class="ml-2 animate-pulse" width="35" height="35" />
</div>
</template>
4 changes: 2 additions & 2 deletions src/components/SearchResults.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ defineProps<{ results: number }>();
</script>

<template>
<div class="whitespace-nowrap text-sm font-normal text-gray-600 dark:text-gray-400">
<span v-if="results"> {{ results }} {{ results > 1 ? "verbs" : "verb" }} </span>
<div class="text-sm font-normal whitespace-nowrap text-gray-600 dark:text-gray-400">
<span v-show="results"> {{ results }} {{ results > 1 ? "verbs" : "verb" }} </span>
</div>
</template>
4 changes: 2 additions & 2 deletions src/components/Table.vue
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ const onSort = (columnName: string): void => {
class="sticky top-0 z-20 bg-blue-100 p-2 text-left text-lg font-semibold text-gray-900 md:rounded-t-md dark:border dark:border-gray-700 dark:bg-gray-800 dark:text-white"
>
<div class="flex flex-nowrap items-center">
<p class="mr-2 whitespace-nowrap text-sm uppercase dark:text-gray-400">List of irregular verbs</p>
<p class="mr-2 text-sm whitespace-nowrap uppercase dark:text-gray-400">List of irregular verbs</p>
<!-- Search results -->
<search-results :results="searchResults.length" />
</div>
Expand All @@ -58,7 +58,7 @@ const onSort = (columnName: string): void => {
</caption>

<!-- Table head -->
<thead class="text-xs uppercase text-gray-700 dark:text-gray-400">
<thead class="text-xs text-gray-700 uppercase dark:text-gray-400">
<tr>
<TableHead
v-for="(value, result) in searchResults[0]"
Expand Down

0 comments on commit 7eb4b52

Please sign in to comment.