From fbc16b3a726d06d0d99ea9f4b8804c675ebca11d Mon Sep 17 00:00:00 2001 From: Abhinav Arya Date: Sun, 8 Oct 2023 07:07:42 +0000 Subject: [PATCH] Fix/Card overlapping issue #1001 --- .../BestPracticeNavigation.module.css | 14 ++++++++++++++ .../components/shared/BestPracticeNavigation.tsx | 10 +++++++--- 2 files changed, 21 insertions(+), 3 deletions(-) create mode 100644 apps/formbricks-com/components/customeStyles/BestPracticeNavigation.module.css diff --git a/apps/formbricks-com/components/customeStyles/BestPracticeNavigation.module.css b/apps/formbricks-com/components/customeStyles/BestPracticeNavigation.module.css new file mode 100644 index 0000000000..1c31b95843 --- /dev/null +++ b/apps/formbricks-com/components/customeStyles/BestPracticeNavigation.module.css @@ -0,0 +1,14 @@ +@media screen and (max-width:960px) and (min-width:831px){ + .category{ + font-size: 12px; + } +} +@media screen and (max-width:830px) and (min-width:640px) { + .heroCard{ + padding: 1rem; + } + .category{ + font-size: 10px; + right: 10px; + } +} \ No newline at end of file diff --git a/apps/formbricks-com/components/shared/BestPracticeNavigation.tsx b/apps/formbricks-com/components/shared/BestPracticeNavigation.tsx index 054cbebdbd..47c7251288 100644 --- a/apps/formbricks-com/components/shared/BestPracticeNavigation.tsx +++ b/apps/formbricks-com/components/shared/BestPracticeNavigation.tsx @@ -11,6 +11,9 @@ import { import clsx from "clsx"; import Link from "next/link"; +// Importing custom CSS file for BestPracticeNavigation.tsx File. +import style from "../customeStyles/BestPracticeNavigation.module.css"; + export default function BestPracticeNavigation() { const BestPractices = [ { @@ -81,14 +84,15 @@ export default function BestPracticeNavigation() { ]; return ( -
+
{BestPractices.map((bestPractice) => ( -
+