Skip to content
Snippets Groups Projects
Commit 40b3d515 authored by Timothee P's avatar Timothee P :sunflower:
Browse files

fix: missing alt attribute & avoid stretching image

parent ca8c5445
No related branches found
No related tags found
1 merge request!840REDMINE_ISSUE-19725 | Redirection vers la page de connexion du portail MRN si l'utilisateur n'est pas connecté
......@@ -5,10 +5,12 @@
:src="src"
type="application/pdf"
>
<img
v-else
:src="src"
>
<div v-else>
<img
:src="src"
:alt="`Aperçu ${is_pdf ? 'd\'un document pdf' : 'd\'une image'}`"
>
</div>
</div>
</template>
......@@ -48,5 +50,9 @@ export default {
height: 100%;
width: 100%;
}
> div {
display: flex;
justify-content: center;
}
}
</style>
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment