@@ -740,7 +740,7 @@ function Placeholder(props) {
740
740
return "not-allowed" ;
741
741
}
742
742
} else {
743
- return "all-scroll " ;
743
+ return "move " ;
744
744
}
745
745
} ;
746
746
@@ -946,23 +946,24 @@ function Placeholder(props) {
946
946
props . pos . key === props ?. currWidgetsDetails ?. key && < BorderResize />
947
947
) }
948
948
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).
954
954
*/ }
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
+ ) }
955
964
< 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"
964
966
style = { {
965
- outlineColor : themeColor ,
966
967
left : xPos ( props . pos , props . isSignYourself ) ,
967
968
top : yPos ( props . pos , props . isSignYourself ) ,
968
969
width : "100%" ,
0 commit comments