web: fix error text ui

This commit is contained in:
Abdullah Atta
2024-08-14 10:57:10 +05:00
committed by Abdullah Atta
parent 6dd7a4960f
commit a910c819f2
2 changed files with 2 additions and 1 deletions

View File

@@ -32,6 +32,7 @@ export function ErrorText(props: ErrorTextProps) {
p={1}
sx={{
borderRadius: "default",
mt: 2,
...sx,
alignItems: "flex-start",
maxHeight: 300,

View File

@@ -105,7 +105,7 @@ export const ConfirmDialog = DialogManager.register(function ConfirmDialog<
/>
) : null}
{warnings?.map((text) => (
<ErrorText key={text} error={text} />
<ErrorText key={text} error={text} sx={{ mt: 0 }} />
))}
{checks
? Object.entries<Check | undefined>(checks).map(