fix bug on tooltip with div wrapping
This commit is contained in:
parent
13770a87f3
commit
3aaeee42fe
1 changed files with 8 additions and 4 deletions
|
|
@ -83,6 +83,7 @@ export default function ParameterComponent({
|
||||||
};
|
};
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
|
if (name === "openai_api_base") console.log(info);
|
||||||
infoHtml.current = (
|
infoHtml.current = (
|
||||||
<div className="h-full w-full break-words">
|
<div className="h-full w-full break-words">
|
||||||
{info.split("\n").map((line, i) => (
|
{info.split("\n").map((line, i) => (
|
||||||
|
|
@ -163,10 +164,13 @@ export default function ParameterComponent({
|
||||||
<div className="">
|
<div className="">
|
||||||
{info !== "" && (
|
{info !== "" && (
|
||||||
<ShadTooltip content={infoHtml.current}>
|
<ShadTooltip content={infoHtml.current}>
|
||||||
<IconComponent
|
{/* put div to avoid bug that does not display tooltip */}
|
||||||
name="Info"
|
<div>
|
||||||
TWstyle="relative bottom-0.5 ml-2 h-3 w-4"
|
<IconComponent
|
||||||
/>
|
name="Info"
|
||||||
|
TWstyle="relative bottom-0.5 ml-2 h-3 w-4"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
</ShadTooltip>
|
</ShadTooltip>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue