From 1e99cce899c56681560feabd7c7c644aec3d5de5 Mon Sep 17 00:00:00 2001 From: Cristhian Zanforlin Lousa Date: Wed, 27 Sep 2023 21:57:25 -0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix(keypairListComponent):=20pas?= =?UTF-8?q?s=20ref=20to=20onChange=20function=20to=20ensure=20updated=20va?= =?UTF-8?q?lue=20is=20used=20=F0=9F=8E=A8=20style(applies.css):=20adjust?= =?UTF-8?q?=20width=20of=20api-modal-tabs=20to=20be=20responsive=20on=20di?= =?UTF-8?q?fferent=20screen=20sizes?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/frontend/src/components/keypairListComponent/index.tsx | 2 +- src/frontend/src/style/applies.css | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/frontend/src/components/keypairListComponent/index.tsx b/src/frontend/src/components/keypairListComponent/index.tsx index f1e93e7fc..540975682 100644 --- a/src/frontend/src/components/keypairListComponent/index.tsx +++ b/src/frontend/src/components/keypairListComponent/index.tsx @@ -24,7 +24,7 @@ export default function KeypairListComponent({ useEffect(() => { if (JSON.stringify(value) !== JSON.stringify(ref.current)) { ref.current = value; - onChange(value); + onChange(value, ref); } }, [value]); diff --git a/src/frontend/src/style/applies.css b/src/frontend/src/style/applies.css index 5ea9f5086..c02e8e0fa 100644 --- a/src/frontend/src/style/applies.css +++ b/src/frontend/src/style/applies.css @@ -853,7 +853,7 @@ } .api-modal-tabs { - @apply flex h-full flex-col overflow-hidden rounded-md border bg-muted text-center max-lg:w-full sm:w-[75vw] lg:w-full; + @apply flex h-full flex-col overflow-hidden rounded-md border bg-muted text-center sm:w-[75vw] md:w-[75vw] lg:w-[75vw] xl:w-[76vw] 2xl:w-full; } .api-modal-tablist-div { @apply flex items-center justify-between px-2;