Skip to content

Commit 1f2298f

Browse files
fix: dragging icon is not visible and css change
1 parent e59a7e0 commit 1f2298f

File tree

5 files changed

+8
-24
lines changed

5 files changed

+8
-24
lines changed

apps/OpenSign/src/components/pdf/BorderResize.js

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,9 @@ import React from "react";
33
function BorderResize({ right, top }) {
44
return (
55
<div
6-
className="borderResize"
7-
style={{
8-
right: right ? right + "px" : "-1px",
9-
bottom: top ? top + "px" : "-1px",
10-
borderRight: "3px solid #188ae2",
11-
borderBottom: "3px solid #188ae2"
12-
}}
6+
className={`${right ? `-right-[12px]` : "-right-[1px]"} ${
7+
top ? `-bottom-[11px]` : "-bottom-[1px]"
8+
} absolute inline-block w-[14px] h-[14px] hover:cursor-sw-resize border-r-[3px] border-b-[3px] border-[#188ae2]`}
139
></div>
1410
);
1511
}

apps/OpenSign/src/components/pdf/PlaceholderBorder.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ function PlaceholderBorder(props) {
4747
onTouchEnd={() =>
4848
props.pos.type === textWidget && props?.setDraggingEnabled(true)
4949
}
50-
className="borderResize"
50+
className="absolute inline-block w-[14px] h-[14px] hover:cursor-sw-resize"
5151
style={{
5252
borderColor: themeColor,
5353
borderStyle: "dashed",

apps/OpenSign/src/components/pdf/RenderPdf.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -246,10 +246,9 @@ function RenderPdf({
246246
{isMobile ? (
247247
<div
248248
data-tut="reactourForth"
249-
style={{
250-
border: "0.1px solid #ebe8e8",
251-
marginTop: isGuestSigner && "30px"
252-
}}
249+
className={`${
250+
isGuestSigner ? "30px" : ""
251+
} border-[0.1px] border-[#ebe8e8]`}
253252
ref={drop}
254253
id="container"
255254
>

apps/OpenSign/src/constant/Utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@ export const getWidgetType = (item) => {
379379
<div className="op-btn w-fit md:w-[100%] op-btn-primary op-btn-outline op-btn-sm focus:outline-none outline outline-[1.5px] ml-[6px] md:ml-0 p-0 overflow-hidden">
380380
<div className="w-full h-full flex md:justify-between items-center">
381381
<div className="flex justify-start items-center text-[13px] ml-1">
382-
{!isMobile && <i className="fa-sharp fa-solid fa-grip-vertical"></i>}
382+
{!isMobile && <i className="fa-light fa-grip-vertical ml-[3px]"></i>}
383383
<span className="md:inline-block text-center text-[15px] ml-[5px] font-semibold pr-1 md:pr-0">
384384
{item.type}
385385
</span>

apps/OpenSign/src/styles/signature.css

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -50,17 +50,6 @@
5050
width: 460px;
5151
}
5252

53-
.borderResize {
54-
position: absolute;
55-
display: inline-block;
56-
width: 14px;
57-
height: 14px;
58-
}
59-
60-
.borderResize :hover {
61-
cursor: sw-resize;
62-
}
63-
6453
.icon {
6554
position: absolute;
6655
font-size: 14px;

0 commit comments

Comments
 (0)