fix: on-drag placeholder user-details popup open issue,close button design, remove unnecessary code & npm package

This commit is contained in:
RaktimaNXG
2024-01-12 14:07:53 +05:30
parent 1ec10fbcfc
commit 0715ca9d85
22 changed files with 122 additions and 1227 deletions
@@ -1,5 +1,4 @@
import axios from "axios";
import { $ } from "select-dom";
import { rgb } from "pdf-lib";
const isMobile = window.innerWidth < 767;
@@ -398,16 +397,6 @@ export function urlValidator(url) {
return false;
}
}
export function modalAlign() {
let modalDialog = $(".modal-dialog").getBoundingClientRect();
let mobileHead = $(".mobileHead").getBoundingClientRect();
let modal = $(".modal-dialog");
if (modalDialog.left < mobileHead.left) {
let leftOffset = mobileHead.left - modalDialog.left;
modal.style.left = leftOffset + "px";
modal.style.top = window.innerHeight / 3 + "px";
}
}
export const placeholderWidth = (pos, scale, signyourself) => {
let width;