Skip to content
This repository has been archived by the owner on Feb 22, 2023. It is now read-only.

Fix image size jumps on single result #1381

Merged
merged 3 commits into from
May 10, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions src/locales/po-files/openverse.pot
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Openverse \n"
"Report-Msgid-Bugs-To: https://github.com/wordpress/openverse/issues \n"
"POT-Creation-Date: 2022-05-10T15:31:18+00:00\n"
"POT-Creation-Date: 2022-05-10T16:23:17+00:00\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
Expand Down Expand Up @@ -412,12 +412,12 @@ msgid "Genre"
msgstr ""

#. Do not translate words between ### ###.
#: src/pages/image/_id.vue:42
#: src/pages/image/_id.vue:44
msgctxt "image-details.creator"
msgid "by ###name###"
msgstr ""

#: src/pages/image/_id.vue:36
#: src/pages/image/_id.vue:38
msgctxt "image-details.weblink"
msgid "Go to image's website"
msgstr ""
Expand Down Expand Up @@ -599,7 +599,7 @@ msgid "Open form"
msgstr ""

#. Do not translate words between ### ###.
#: src/pages/image/_id.vue:52
#: src/pages/image/_id.vue:54
msgctxt "media-details.aria.creator-url"
msgid "author ###name###"
msgstr ""
Expand Down Expand Up @@ -1140,7 +1140,7 @@ msgid "An error occurred"
msgstr ""

#. Do not translate words between ### ###.
#: src/pages/image/_id.vue:195
#: src/pages/image/_id.vue:197
msgctxt "error.image-not-found"
msgid "Couldn't find image with id ###id###"
msgstr ""
Expand Down
4 changes: 3 additions & 1 deletion src/pages/image/_id.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@
id="main-image"
:src="isLoadingFullImage ? image.thumbnail : image.url"
:alt="image.title"
class="h-full max-h-[500px] mx-auto rounded-t-sm"
class="h-full w-full max-h-[500px] mx-auto rounded-t-sm object-contain"
:width="imageWidth"
:height="imageHeight"
@load="onImageLoaded"
/>
<VSketchFabViewer
Expand Down