diff --git a/website/src/components/CollapsableText.tsx b/website/src/components/CollapsableText.tsx index ca0177f9..8d2dff56 100644 --- a/website/src/components/CollapsableText.tsx +++ b/website/src/components/CollapsableText.tsx @@ -6,6 +6,7 @@ import { ModalContent, ModalHeader, ModalOverlay, + useColorModeValue, useDisclosure, } from "@chakra-ui/react"; import React, { ReactNode } from "react"; @@ -21,15 +22,27 @@ export const CollapsableText = ({ }) => { const { isOpen, onOpen, onClose } = useDisclosure(); + const moreButtonColor = useColorModeValue("gray.600", "gray.400"); + if (typeof text !== "string" || text.length <= maxLength) { return <>{text}; } else { return ( <> - {text.substring(0, maxLength - 3)} - + + {text.substring(0, maxLength - 3)}  + +