Skip to content

Commit

Permalink
Merge pull request #106 from SpeciesFileGroup/development
Browse files Browse the repository at this point in the history
Development
  • Loading branch information
José Luis Pereira authored and GitHub committed Jul 24, 2023
2 parents 339f248 + 6cc3736 commit 8b65a3e
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/components/Gallery/GalleryMainImage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
</ClientOnly>
<img
ref="imageElement"
class="max-h-80 h-max w-100 cursor-zoom-in m-auto"
class="max-h-80 h-max w-100 cursor-zoom-in m-auto object-contain"
:src="image.original"
:alt="image.depictions.map((d) => d.label).join(';')"
@click="emit('open:viewer')"
Expand Down
4 changes: 2 additions & 2 deletions src/components/ImageViewer/ControlImageNext.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
<button
type="button"
class="p-2 cursor-pointer opacity-50 bg-base-content text-base-background"
title="Next image"
>
<IconArrowRight class="h-8 w-8" />
</button>
</template>

<script setup>
</script>
<script setup></script>
4 changes: 2 additions & 2 deletions src/components/ImageViewer/ControlImagePrevious.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
<button
type="button"
class="p-2 cursor-pointer opacity-50 bg-base-content text-base-background"
title="Previous image"
>
<IconArrowLeft class="h-8 w-8" />
</button>
</template>
<script setup>
</script>
<script setup></script>
1 change: 1 addition & 0 deletions src/components/ImageViewer/ImageViewer.global.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
<img
ref="imageElement"
class="mx-auto cursor-zoom-out w-auto max-w-full max-h-full h-auto my-auto"
:alt="image.depictions.map((d) => d.label).join(';')"
:src="image.original"
@click="emit('close')"
/>
Expand Down

0 comments on commit 8b65a3e

Please sign in to comment.