Skip to content
Snippets Groups Projects
Commit 6a00a600 authored by Konrad Mohrfeldt's avatar Konrad Mohrfeldt :koala:
Browse files

fix(ImagePicker): fix image alt text assignment

parent 73eabef4
No related branches found
No related tags found
No related merge requests found
......@@ -2,6 +2,7 @@
<ImagePreview
:url="image?.url ?? null"
class="tw-inline-flex tw-h-64 tw-max-w-full tw-min-w-[320px] tw-bg-gray-700 tw-rounded tw-flex-1 dark:tw-bg-neutral-700"
:alt="image?.altText"
v-bind="attrs"
>
<div
......
......@@ -8,6 +8,7 @@
:src="url"
class="tw-max-w-full tw-max-h-full tw-block tw-mx-auto"
:class="{ 'tw-object-cover tw-h-full': cover, 'tw-object-contain': !cover }"
:alt="alt ?? ''"
/>
<div
v-else
......@@ -24,8 +25,8 @@ withDefaults(
defineProps<{
url: string | null
as?: string
alt?: string
cover?: boolean
alt?: string | undefined
}>(),
{
cover: true,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment