Upgrade UI Modal Terminal

This commit is contained in:
andrew.ng 2026-06-01 16:51:09 +07:00
parent 9fac74ccc0
commit 53d8f184d0
3 changed files with 702 additions and 607 deletions

View File

@ -0,0 +1,32 @@
import { Box, Flex, Text } from "@mantine/core";
interface GroupButtonProps {
title: string;
children: React.ReactNode;
}
export default function GroupButtonTerminal({
title,
children,
}: GroupButtonProps) {
return (
<Box
p="xs"
style={{
border: "1px solid var(--mantine-color-gray-3)",
borderRadius: "8px",
backgroundColor: "var(--mantine-color-gray-0)",
}}
>
<Flex justify="space-between" align="center" gap="md">
<Text fz={12} c="dimmed">
{title}
</Text>
<Flex gap="sm" wrap="wrap">
{children}
</Flex>
</Flex>
</Box>
);
}

File diff suppressed because it is too large Load Diff

View File

@ -295,6 +295,7 @@ const TerminalCLI: React.FC<TerminalCLIProps> = ({
backgroundColor: "black",
paddingBottom: customStyle.paddingBottom ?? "10px",
maxHeight: customStyle.maxHeight ?? "70vh",
borderRadius: "8px",
}}
>
<div