Skip to content

Commit 6014088

Browse files
authored
Merge pull request #537 from OpenSignLabs/tooltip_pos
2 parents 12a6a84 + a06723f commit 6014088

File tree

4 files changed

+23
-15
lines changed

4 files changed

+23
-15
lines changed

apps/OpenSign/src/components/dashboard/DashboardCard.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ const DashboardCard = (props) => {
353353
</div>
354354
</div>
355355
</div>
356-
<div className="text-xs absolute top-1 right-1">
356+
<div className="text-xs absolute top-2 right-1">
357357
<Tooltip id={props.Label} iconColor={"white"} message={props?.Data?.tourMessage} />
358358
</div>
359359
</div>

apps/OpenSign/src/components/shared/fields/SelectFolder.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ const SelectFolder = ({ required, onSuccess, folderCls, isReset }) => {
196196
{selectFolder && selectFolder.Name ? `(${folderPath})` : ""}
197197
</p>
198198
</div>
199-
<div className="absolute top-1 right-1 cursor-pointer">
199+
<div className="absolute top-2 right-1 cursor-pointer">
200200
<Tooltip
201201
message={
202202
"If you do not select a folder, your signed document will be saved in the Main OpenSign drive folder."

apps/OpenSign/src/components/shared/fields/SignersInput.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ const SignersInput = (props) => {
105105

106106
return (
107107
<div className="text-xs mt-2 ">
108-
<label className="block">
108+
<label className="block relative">
109109
Signers
110110
{props.required && <span className="text-red-500 text-[13px]">*</span>}
111111
<span className="absolute ml-1 text-xs z-50">

apps/OpenSign/src/primitives/Tooltip.js

Lines changed: 20 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,21 @@
11
import React from "react";
22
import { Tooltip as ReactTooltip } from "react-tooltip";
33
import { openInNewTab } from "../constant/Utils";
4-
const Tooltip = ({ children, id, message, url, iconColor }) =>
4+
const Tooltip = ({ id, message, url, iconColor }) =>
55
url ? (
66
<button onClick={() => openInNewTab(url)} className="text-center">
7-
{children ? (
8-
children
9-
) : (
10-
<i className="fa-solid fa-question text-xs border-[1.5px] px-1 rounded-full border-[#33bbff] text-[#33bbff]"></i>
11-
)}
7+
<sup>
8+
<i
9+
className="fa-solid fa-question rounded-full"
10+
style={{
11+
borderColor: iconColor ? iconColor : "#33bbff",
12+
color: iconColor ? iconColor : "#33bbff",
13+
fontSize: 13,
14+
borderWidth: 1.5,
15+
padding: "1.5px 4px"
16+
}}
17+
></i>
18+
</sup>
1219
</button>
1320
) : (
1421
<>
@@ -17,17 +24,18 @@ const Tooltip = ({ children, id, message, url, iconColor }) =>
1724
data-tooltip-content={message}
1825
className="z-50"
1926
>
20-
{children ? (
21-
children
22-
) : (
27+
<sup>
2328
<i
24-
className="fa-solid fa-question text-xs border-[1.5px] px-1 rounded-full border-[#33bbff] text-[#33bbff]"
29+
className="fa-solid fa-question rounded-full"
2530
style={{
2631
borderColor: iconColor ? iconColor : "#33bbff",
27-
color: iconColor ? iconColor : "#33bbff"
32+
color: iconColor ? iconColor : "#33bbff",
33+
fontSize: 13,
34+
borderWidth: 1.5,
35+
padding: "1.5px 4px"
2836
}}
2937
></i>
30-
)}
38+
</sup>
3139
</a>
3240
<ReactTooltip id={id ? id : "my-tooltip"} className="max-w-[200px]" />
3341
</>

0 commit comments

Comments
 (0)