From 6f34e039ebb6aaa1c960308c22c0616c60ee2d8c Mon Sep 17 00:00:00 2001 From: Lucas Oliveira Date: Mon, 17 Jun 2024 23:11:03 -0300 Subject: [PATCH] Fixed loading on file component and unstyled buttons not having nocopy and nopan classes --- .../components/inputFileComponent/index.tsx | 23 ++++++++++--------- src/frontend/src/components/ui/button.tsx | 6 ++--- src/frontend/src/style/applies.css | 2 +- 3 files changed, 16 insertions(+), 15 deletions(-) diff --git a/src/frontend/src/components/inputFileComponent/index.tsx b/src/frontend/src/components/inputFileComponent/index.tsx index 1e9f4dea5..8eee0ec4e 100644 --- a/src/frontend/src/components/inputFileComponent/index.tsx +++ b/src/frontend/src/components/inputFileComponent/index.tsx @@ -8,6 +8,7 @@ import useAlertStore from "../../stores/alertStore"; import useFlowsManagerStore from "../../stores/flowsManagerStore"; import { FileComponentType } from "../../types/components"; import IconComponent from "../genericIconComponent"; +import { Button } from "../ui/button"; export default function InputFileComponent({ value, @@ -111,20 +112,20 @@ export default function InputFileComponent({ > {myValue !== "" ? myValue : "No file"} - + + )} ); diff --git a/src/frontend/src/components/ui/button.tsx b/src/frontend/src/components/ui/button.tsx index 681b86e1b..915f49b24 100644 --- a/src/frontend/src/components/ui/button.tsx +++ b/src/frontend/src/components/ui/button.tsx @@ -76,7 +76,7 @@ const Button = React.forwardRef( <> ( {loading ? ( {newChildren} - + diff --git a/src/frontend/src/style/applies.css b/src/frontend/src/style/applies.css index 6c325b47b..910cdb35b 100644 --- a/src/frontend/src/style/applies.css +++ b/src/frontend/src/style/applies.css @@ -931,7 +931,7 @@ } .icons-parameters-comp { - @apply ml-3 h-6 w-6; + @apply h-6 w-6; } .form-modal-lock-true {