From fabdb633aca82fc45b2d16dedada4d0bee61b832 Mon Sep 17 00:00:00 2001 From: Francisco Salgueiro <92053465+franciscoBSalgueiro@users.noreply.github.com> Date: Sun, 8 Oct 2023 23:54:23 +0100 Subject: [PATCH] fix scroll bars in modals (#34) --- src/components/databases/AddDatabase.tsx | 45 +++++++++++---------- src/components/engines/AddEngine.tsx | 51 +++++++++++------------- src/components/engines/EditEngine.tsx | 1 - src/components/puzzles/AddPuzzle.tsx | 43 ++++++++++---------- 4 files changed, 69 insertions(+), 71 deletions(-) diff --git a/src/components/databases/AddDatabase.tsx b/src/components/databases/AddDatabase.tsx index ad9ea045..437c4ac3 100644 --- a/src/components/databases/AddDatabase.tsx +++ b/src/components/databases/AddDatabase.tsx @@ -94,7 +94,6 @@ function AddDatabase({ opened={opened} onClose={() => setOpened(false)} title="Add Database" - scrollAreaComponent={ScrollArea.Autosize} > @@ -107,27 +106,29 @@ function AddDatabase({ )} - - {defaultDatabases && - defaultDatabases.map((db, i) => ( - e.title === db.title)} - /> - ))} - {error && ( - } - title="Error" - color="red" - > - {"Failed to fetch the database's info from the server."} - - )} - + + + {defaultDatabases && + defaultDatabases.map((db, i) => ( + e.title === db.title)} + /> + ))} + {error && ( + } + title="Error" + color="red" + > + {"Failed to fetch the database's info from the server."} + + )} + +
setOpened(false)} - title="Add Engine" - scrollAreaComponent={ScrollArea.Autosize} - > + setOpened(false)} title="Add Engine"> Web @@ -104,27 +99,29 @@ function AddEngine({ )} - - {defaultEngines && - defaultEngines.map((engine, i) => ( - e.name === engine.name)} - /> - ))} - {error && ( - } - title="Error" - color="red" - > - {"Failed to fetch the engine's info from the server."} - - )} - + + + {defaultEngines && + defaultEngines.map((engine, i) => ( + e.name === engine.name)} + /> + ))} + {error && ( + } + title="Error" + color="red" + > + {"Failed to fetch the engine's info from the server."} + + )} + + setOpened(false)} title="Edit Engine" - scrollAreaComponent={ScrollArea.Autosize} > setOpened(false)} title="Add Database" - scrollAreaComponent={ScrollArea.Autosize} > - - {defaultdatabases.map((db, i) => ( - e.title === db.title)} - /> - ))} - {error && ( - } - title="Error" - color="red" - > - {"Failed to fetch the database's info from the server."} - - )} - + + + {defaultdatabases.map((db, i) => ( + e.title === db.title)} + /> + ))} + {error && ( + } + title="Error" + color="red" + > + {"Failed to fetch the database's info from the server."} + + )} + + ); }