Skip to content

Commit

Permalink
Reduce warning font size on mobile (#3376)
Browse files Browse the repository at this point in the history
Refs #3224

I could not reproduce but maybe this helps.
  • Loading branch information
AbdBarho authored Jun 11, 2023
1 parent 51ed8c1 commit 9070e31
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions website/src/components/Chat/ChatWarning.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
import { Box } from "@chakra-ui/react";
import { useTranslation } from "next-i18next";
import { memo } from "react";

export const ChatWarning = () => {
export const ChatWarning = memo(function ChatWarning() {
const { t } = useTranslation("chat");
return (
<Box fontSize="sm" textAlign="center" mb="2" className="max-w-5xl mx-auto">
<Box fontSize={["xs", "sm"]} textAlign="center" mb="2" className="max-w-5xl mx-auto">
{t("warning")}
</Box>
);
};
});

0 comments on commit 9070e31

Please sign in to comment.