Skip to content

Commit

Permalink
fix: DocumentTable sort column width wobble. Fixes #49 (#149)
Browse files Browse the repository at this point in the history
  • Loading branch information
holloway authored Aug 7, 2024
1 parent b8737ab commit 7cf9cbf
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion client/components/DocumentTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,15 @@
<span>{{ col.label }}</span>
<template v-if="state.sortField === col.field">
<Icon v-if="state.sortDirection === 'asc'" name="uil:arrow-up" class="text-lg -mt-0.5" />
<Icon v-else name="uil:arrow-down" class="text-lg -mt-0.5" />
<Icon v-else-if="state.sortDirection === 'desc'" name="uil:arrow-down" class="text-lg -mt-0.5" />
</template>
<template v-else>
<!-- else render a placeholder icon see https://github.com/ietf-tools/rpc/issues/49 -->
<Icon
name="uil:arrow-down"
class="text-lg -mt-0.5 opacity-0"
/>
</template>
</a>
<span v-else>{{ col.label }}</span>
</th>
Expand Down

0 comments on commit 7cf9cbf

Please sign in to comment.