Skip to content

Commit

Permalink
fix: 🐛 fix outline for expanded items in the popup
Browse files Browse the repository at this point in the history
  • Loading branch information
CRBroughton committed Nov 25, 2023
1 parent 0771691 commit 0e929f5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/neat-glasses-own.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"forager": patch
---

Fix outline for expanded items in the popup
6 changes: 5 additions & 1 deletion src/components/ReferenceImages.vue
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,11 @@ const isSliced = ref(true)
<p>Landmark</p>
</div>
<div v-for="image in props.images" :key="image.url" class="flex flex-col justify-center items-center">
<ReferenceImage :image="image" :class="{ selected: selectedImage?.url === image.url }" @click="selectImage(image)" />
<ReferenceImage
:image="image"
:outline="`${selectedImage?.url === image.url ? 'blue' : image.colour}`"
@click="selectImage (image)"
/>
</div>
</div>
</div>
Expand Down

0 comments on commit 0e929f5

Please sign in to comment.