mirror of
https://github.com/Spythere/stacjownik.git
synced 2026-05-03 13:28:11 +00:00
hotfixy designu
This commit is contained in:
@@ -31,7 +31,10 @@ export default defineComponent({
|
||||
let translateX = '0px',
|
||||
translateY = '30px';
|
||||
|
||||
if (val.x <= boxWidth / 2) {
|
||||
if (clientWidth < 500) {
|
||||
previewEl.style.left = '50%';
|
||||
translateX = '-50%';
|
||||
} else if (val.x <= boxWidth / 2) {
|
||||
previewEl.style.left = '0';
|
||||
translateX = '0px';
|
||||
} else if (val.x >= clientWidth - boxWidth / 2) {
|
||||
|
||||
@@ -10,7 +10,6 @@
|
||||
v-if="popupStore.currentPopupContent"
|
||||
@load="onImageLoad"
|
||||
@error="onImageError"
|
||||
@click="popupStore.onPopUpHide"
|
||||
width="300"
|
||||
height="176"
|
||||
class="rounded-md w-full h-auto"
|
||||
|
||||
Reference in New Issue
Block a user