🐛 fix(codeAreaComponent): adjust classNames to fix styling issues and improve readability
🐛 fix(promptComponent): adjust classNames to fix styling issues and improve readability 🐛 fix(textAreaComponent): adjust classNames to fix styling issues and improve readability
This commit is contained in:
parent
1dcb71b952
commit
9f24f7830c
3 changed files with 123 additions and 111 deletions
|
|
@ -30,9 +30,11 @@ export default function CodeAreaComponent({
|
||||||
}, [value]);
|
}, [value]);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
<div className={disabled ? "cursor-not-allowed" : ""}>
|
||||||
<div
|
<div
|
||||||
className={
|
className={
|
||||||
disabled ? "pointer-events-none w-full cursor-not-allowed" : "w-full"
|
(editNode ? "w-full items-center" : "flex w-full items-center") +
|
||||||
|
(disabled ? " pointer-events-none" : "")
|
||||||
}
|
}
|
||||||
>
|
>
|
||||||
<div className="flex w-full items-center">
|
<div className="flex w-full items-center">
|
||||||
|
|
@ -77,11 +79,15 @@ export default function CodeAreaComponent({
|
||||||
{!editNode && (
|
{!editNode && (
|
||||||
<ExternalLink
|
<ExternalLink
|
||||||
strokeWidth={1.5}
|
strokeWidth={1.5}
|
||||||
className="ml-3 h-6 w-6 hover:text-accent-foreground"
|
className={
|
||||||
|
"ml-3 h-6 w-6" +
|
||||||
|
(disabled ? " text-ring" : " hover:text-accent-foreground")
|
||||||
|
}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -47,11 +47,8 @@ export default function PromptAreaComponent({
|
||||||
}, [reactFlowInstance, field_name]);
|
}, [reactFlowInstance, field_name]);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div
|
<div className={disabled ? "cursor-not-allowed" : ""}>
|
||||||
className={
|
<div className={disabled ? "pointer-events-none w-full " : " w-full"}>
|
||||||
disabled ? "pointer-events-none w-full cursor-not-allowed" : " w-full"
|
|
||||||
}
|
|
||||||
>
|
|
||||||
<div className="flex w-full items-center">
|
<div className="flex w-full items-center">
|
||||||
<span
|
<span
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
|
|
@ -102,11 +99,15 @@ export default function PromptAreaComponent({
|
||||||
{!editNode && (
|
{!editNode && (
|
||||||
<ExternalLink
|
<ExternalLink
|
||||||
strokeWidth={1.5}
|
strokeWidth={1.5}
|
||||||
className="ml-3 h-6 w-6 hover:text-accent-foreground"
|
className={
|
||||||
|
"ml-3 h-6 w-6" +
|
||||||
|
(disabled ? " text-ring" : " hover:text-accent-foreground")
|
||||||
|
}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -27,10 +27,11 @@ export default function TextAreaComponent({
|
||||||
}, [closePopUp]);
|
}, [closePopUp]);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className={disabled ? "pointer-events-none cursor-not-allowed" : ""}>
|
<div className={disabled ? "cursor-not-allowed" : ""}>
|
||||||
<div
|
<div
|
||||||
className={
|
className={
|
||||||
editNode ? "w-full items-center" : "flex w-full items-center"
|
(editNode ? "w-full items-center" : "flex w-full items-center") +
|
||||||
|
(disabled ? " pointer-events-none" : "")
|
||||||
}
|
}
|
||||||
>
|
>
|
||||||
<span
|
<span
|
||||||
|
|
@ -57,6 +58,7 @@ export default function TextAreaComponent({
|
||||||
>
|
>
|
||||||
{myValue !== "" ? myValue : "Type something..."}
|
{myValue !== "" ? myValue : "Type something..."}
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
<button
|
<button
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
openPopUp(
|
openPopUp(
|
||||||
|
|
@ -76,7 +78,10 @@ export default function TextAreaComponent({
|
||||||
{!editNode && (
|
{!editNode && (
|
||||||
<ExternalLink
|
<ExternalLink
|
||||||
strokeWidth={1.5}
|
strokeWidth={1.5}
|
||||||
className="ml-3 h-6 w-6 hover:text-accent-foreground"
|
className={
|
||||||
|
"ml-3 h-6 w-6" +
|
||||||
|
(disabled ? " text-ring" : " hover:text-accent-foreground")
|
||||||
|
}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
</button>
|
</button>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue