forked from jsnbuchanan/crowd-funder-for-time-pwa
Fix: limit image crop stage height
- Addresses issue when extra-tall portrait images are uploaded for cropping
This commit is contained in:
@@ -185,14 +185,14 @@
|
|||||||
dragMode: 'crop',
|
dragMode: 'crop',
|
||||||
aspectRatio: 1 / 1,
|
aspectRatio: 1 / 1,
|
||||||
}"
|
}"
|
||||||
class="max-h-[90vh] max-w-[90vw] object-contain"
|
class="max-h-[50vh] max-w-[90vw] object-contain"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div v-else>
|
<div v-else>
|
||||||
<div class="flex justify-center">
|
<div class="flex justify-center">
|
||||||
<img
|
<img
|
||||||
:src="createBlobURL(blob)"
|
:src="createBlobURL(blob)"
|
||||||
class="mt-2 rounded max-h-[90vh] max-w-[90vw] object-contain"
|
class="mt-2 rounded max-h-[50vh] max-w-[90vw] object-contain"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user