@@ -740,7 +740,7 @@ function Placeholder(props) {
740740 return "not-allowed" ;
741741 }
742742 } else {
743- return "all-scroll " ;
743+ return "move " ;
744744 }
745745 } ;
746746
@@ -946,23 +946,24 @@ function Placeholder(props) {
946946 props . pos . key === props ?. currWidgetsDetails ?. key && < BorderResize />
947947 ) }
948948
949- { /* 1- Show a ouline if props.pos.key === props?.currWidgetsDetails?.key, indicating the current user's selected widget.
950- 2- If props.isShowBorder is true, display ouline for all widgets.
951- 3- Use the combination of props?.isAlllowModify and !props?.assignedWidgetId.includes(props.pos.key) to determine when to show ouline :
952- 3.1- When isAlllowModify is true, show ouline .
953- 3.2- Do not display ouline for widgets already assigned (props.assignedWidgetId.includes(props.pos.key) is true).
949+ { /* 1- Show a border if props.pos.key === props?.currWidgetsDetails?.key, indicating the current user's selected widget.
950+ 2- If props.isShowBorder is true, display border for all widgets.
951+ 3- Use the combination of props?.isAlllowModify and !props?.assignedWidgetId.includes(props.pos.key) to determine when to show border :
952+ 3.1- When isAlllowModify is true, show border .
953+ 3.2- Do not display border for widgets already assigned (props.assignedWidgetId.includes(props.pos.key) is true).
954954 */ }
955+ { props . pos . key === props ?. currWidgetsDetails ?. key &&
956+ ( props . isShowBorder ||
957+ ( props ?. isAlllowModify &&
958+ ! props ?. assignedWidgetId . includes ( props . pos . key ) ) ) && (
959+ < div
960+ style = { { borderColor : themeColor } }
961+ className = "w-[calc(100%+21px)] h-[calc(100%+21px)] cursor-move absolute inline-block border-[1px] border-dashed"
962+ > </ div >
963+ ) }
955964 < div
956- className = { `${
957- props . pos . key === props ?. currWidgetsDetails ?. key &&
958- ( props . isShowBorder ||
959- ( props ?. isAlllowModify &&
960- ! props ?. assignedWidgetId . includes ( props . pos . key ) ) )
961- ? "outline-[0.3px] outline-dashed outline-offset-[10px]"
962- : ""
963- } flex items-stretch justify-center`}
965+ className = "flex items-stretch justify-center"
964966 style = { {
965- outlineColor : themeColor ,
966967 left : xPos ( props . pos , props . isSignYourself ) ,
967968 top : yPos ( props . pos , props . isSignYourself ) ,
968969 width : "100%" ,
0 commit comments