diff --git a/license_ui/src/components/LicenseCode.module.css b/license_ui/src/components/LicenseCode.module.css index f8a43fd..29a03bf 100644 --- a/license_ui/src/components/LicenseCode.module.css +++ b/license_ui/src/components/LicenseCode.module.css @@ -3,4 +3,7 @@ } .license-code-area { flex-grow: 1; + overflow-x: hidden; + overflow-y: auto; + overflow-wrap: break-word; } diff --git a/license_ui/src/components/LicenseCode.tsx b/license_ui/src/components/LicenseCode.tsx index 23dd572..b19138d 100644 --- a/license_ui/src/components/LicenseCode.tsx +++ b/license_ui/src/components/LicenseCode.tsx @@ -1,8 +1,10 @@ -import { ActionIcon, Flex, Group, Paper, Textarea, Title, Tooltip } from "@mantine/core"; +import { useLicenseCode } from "@/hooks/use-license-code"; +import { ActionIcon, Box, Flex, Group, Paper, Title, Tooltip } from "@mantine/core"; import { IconCopy } from "@tabler/icons-react"; import classes from "./LicenseCode.module.css"; export function LicenseCode() { + const [licenseCode] = useLicenseCode(); return ( @@ -14,7 +16,9 @@ export function LicenseCode() { -