1
0
Fork 1
mirror of https://github.com/elk-zone/elk.git synced 2024-10-04 18:00:00 +01:00

fix(ModalDialog): center the preview image (#141)

This commit is contained in:
Chris 2022-11-27 01:56:16 +08:00 committed by GitHub
parent ef287b4f36
commit 7415c5fca2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -25,7 +25,7 @@ watchOnce(modelValue, () => {
<div <div
class=" class="
bg-base absolute transition-all duration-200 ease-out shadow rounded-md transform bg-base absolute transition-all duration-200 ease-out shadow rounded-md transform
border border-base top-1/2 -translate-y-1/2 mx-8 md:(left-1/2 -translate-x-1/2) border border-base top-1/2 -translate-y-1/2 left-1/2 -translate-x-1/2
" "
:class="modelValue ? 'opacity-100' : 'opacity-0'" :class="modelValue ? 'opacity-100' : 'opacity-0'"
> >