Skip to content

A continuation of HomeBox the inventory and organization system built for the Home User

Fix the problem of the fixed height in the background of the location badge in the item cards (#479)

EdWorth120e9f8a235d4c8
diff --git a/frontend/components/Item/Card.vue b/frontend/components/Item/Card.vue
index c56c7c8a..21b0c4e7 100644
--- a/frontend/components/Item/Card.vue
+++ b/frontend/components/Item/Card.vue
@@ -8,10 +8,10 @@
:src="imageUrl"
alt=""
/>
- <div class="absolute bottom-1 left-1 text-wrap">
+ <div class="absolute inset-x-1 bottom-1 text-wrap">
<NuxtLink
v-if="item.location"
- class="badge rounded-md text-sm shadow-md hover:link"
+ class="badge h-auto rounded-md text-sm shadow-md hover:link"
:to="`/location/${item.location.id}`"
>
{{ locationString }}