summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSanto Cariotti <santo@dcariotti.me>2022-10-17 08:10:57 +0200
committerSanto Cariotti <santo@dcariotti.me>2022-10-17 08:10:57 +0200
commita1b648b2bb9960d5697f8fee8a6ce7f42f896744 (patch)
tree086ae9b668f5e451f75b291ffa3077ca019c61e1
parentc43aa314a3916be3c264d0d4f94f9153151d118f (diff)
Inline block `a` elements for user avatars
-rw-r--r--components/VTable.vue4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/VTable.vue b/components/VTable.vue
index 8785c73..7c17d7b 100644
--- a/components/VTable.vue
+++ b/components/VTable.vue
@@ -22,10 +22,10 @@
svg(v-else xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-6 h-6 text-red-500")
path(stroke-linecap="round" stroke-linejoin="round" d="M6 18L18 6M6 6l12 12")
span(v-else-if="name == 'avatar'")
- a(:href="'/user/'+field.id" target="_blank")
+ a.inline-block(:href="'/user/'+field.id" target="_blank")
user-avatar(:data="field")
span(v-else-if="['author', 'user', 'resolved'].includes(name)")
- a(:href="'/user/'+field[name].id" target="_blank")
+ a.inline-block(:href="'/user/'+field[name].id" target="_blank")
user-avatar(:data="field[name]" v-if="field[name].username")
span(v-else-if="name == 'created' || name == 'updated'")
| {{ field[name]|moment("DD/MM/YYYY HH:mm") }}