fix: resolve spacing issue for text-type widgets in mobile view using template flow

This commit is contained in:
RaktimaNXG
2024-11-11 15:50:17 +05:30
parent 2a1d7d2502
commit 2aa4c8c361
@@ -372,8 +372,10 @@ const TemplatePlaceholder = () => {
); );
const key = randomId(); const key = randomId();
const dragTypeValue = item?.text ? item.text : monitor.type; const dragTypeValue = item?.text ? item.text : monitor.type;
const widgetWidth = defaultWidthHeight(dragTypeValue).width; const widgetWidth =
const widgetHeight = defaultWidthHeight(dragTypeValue).height; defaultWidthHeight(dragTypeValue).width * containerScale;
const widgetHeight =
defaultWidthHeight(dragTypeValue).height * containerScale;
let dropData = [], let dropData = [],
currentPagePosition; currentPagePosition;
let placeHolder; let placeHolder;