1 && editNode ? "my-1" : "",
+ "flex flex-col gap-3"
+ )
+ }>
{value.map((i, idx) => {
return (
-
{
let newInputList = _.cloneDeep(value);
diff --git a/src/frontend/src/components/intComponent/index.tsx b/src/frontend/src/components/intComponent/index.tsx
index 24d28e4f5..c43055b47 100644
--- a/src/frontend/src/components/intComponent/index.tsx
+++ b/src/frontend/src/components/intComponent/index.tsx
@@ -1,5 +1,6 @@
import { useEffect } from "react";
import { FloatComponentType } from "../../types/components";
+import { Input } from "../ui/input";
export default function IntComponent({
value,
@@ -17,13 +18,8 @@ export default function IntComponent({
}, [disabled, onChange]);
return (
-
-
+
{
if (
event.key !== "Backspace" &&
@@ -51,12 +47,8 @@ export default function IntComponent({
}
}}
value={value ?? ""}
- className={
- "nopan nodrag noundo nocopy " +
- (editNode
- ? " input-edit-node "
- : " input-primary " + (disabled ? " input-disable" : ""))
- }
+ className={editNode ? "input-edit-node" : ""}
+ disabled={disabled}
placeholder={editNode ? "Integer number" : "Type an integer number"}
onChange={(e) => {
onChange(e.target.value);
diff --git a/src/frontend/src/components/textAreaComponent/index.tsx b/src/frontend/src/components/textAreaComponent/index.tsx
index 2bead9a2d..cd598f01e 100644
--- a/src/frontend/src/components/textAreaComponent/index.tsx
+++ b/src/frontend/src/components/textAreaComponent/index.tsx
@@ -3,6 +3,7 @@ import { TypeModal } from "../../constants/enums";
import GenericModal from "../../modals/genericModal";
import { TextAreaComponentType } from "../../types/components";
import IconComponent from "../genericIconComponent";
+import { Input } from "../ui/input";
export default function TextAreaComponent({
value,
@@ -18,42 +19,36 @@ export default function TextAreaComponent({
}, [disabled]);
return (
-
-
);
diff --git a/src/frontend/src/components/ui/input.tsx b/src/frontend/src/components/ui/input.tsx
index 0942a3930..c025f8de3 100644
--- a/src/frontend/src/components/ui/input.tsx
+++ b/src/frontend/src/components/ui/input.tsx
@@ -9,10 +9,7 @@ const Input = React.forwardRef
(
return (
diff --git a/src/frontend/src/components/ui/textarea.tsx b/src/frontend/src/components/ui/textarea.tsx
index 64aec41a1..cfad1cf72 100644
--- a/src/frontend/src/components/ui/textarea.tsx
+++ b/src/frontend/src/components/ui/textarea.tsx
@@ -8,10 +8,7 @@ const Textarea = React.forwardRef(
({ className, ...props }, ref) => {
return (
diff --git a/src/frontend/src/index.css b/src/frontend/src/index.css
index a849a80f6..3e25dbb4b 100644
--- a/src/frontend/src/index.css
+++ b/src/frontend/src/index.css
@@ -243,13 +243,15 @@ The cursor: default; property value restores the browser's default cursor style
.button-div-style {
@apply gap-2 flex
}
- .input-primary:focus{
- @apply focus:placeholder-transparent focus:ring-ring focus:border-ring
+ .input-primary{
+ @apply disabled:cursor-not-allowed disabled:opacity-50 focus:placeholder-transparent focus:ring-ring focus:border-ring bg-background block text-left border-border form-input px-3 placeholder:text-muted-foreground rounded-md shadow-sm sm:text-sm w-full truncate
}
- .input-primary {
- @apply bg-background block text-left border-border form-input px-3 placeholder:text-muted-foreground rounded-md shadow-sm sm:text-sm truncate w-full;
+
+/* The same as input-primary but no-truncate */
+ .textarea-primary{
+ @apply disabled:cursor-not-allowed disabled:opacity-50 focus:placeholder-transparent focus:ring-ring focus:border-ring bg-background block text-left border-border form-input px-3 placeholder:text-muted-foreground rounded-md shadow-sm sm:text-sm w-full
}
-
+
.input-edit-node{
@apply input-primary border-border pt-0.5 pb-0.5 text-left w-full
}
diff --git a/src/frontend/src/modals/formModal/chatInput/index.tsx b/src/frontend/src/modals/formModal/chatInput/index.tsx
index 6a5bc2ddc..e8be2f292 100644
--- a/src/frontend/src/modals/formModal/chatInput/index.tsx
+++ b/src/frontend/src/modals/formModal/chatInput/index.tsx
@@ -1,5 +1,6 @@
import { useEffect } from "react";
import IconComponent from "../../../components/genericIconComponent";
+import { Textarea } from "../../../components/ui/textarea";
import { classNames } from "../../../utils/utils";
export default function ChatInput({
@@ -25,7 +26,7 @@ export default function ChatInput({
return (
-
-