Skip to content

Commit 7c8dbb3

Browse files
fix: contact support button overlap (calcom#22952)
* add: lib folder in tailwind config * move plainChat and contactForm from lib to components * Update tailwind-preset.js
1 parent cabd459 commit 7c8dbb3

4 files changed

Lines changed: 5 additions & 3 deletions

File tree

apps/web/lib/plain/PlainContactForm.tsx renamed to apps/web/components/plain/PlainContactForm.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ const PlainContactForm = () => {
156156

157157
<PopoverContent
158158
style={{ maxWidth: "450px", maxHeight: "650px" }}
159-
className="!bg-muted no-scrollbar mr-8 mb-2 w-[450px] overflow-hidden overflow-y-scroll px-6 py-4">
159+
className="!bg-muted no-scrollbar mb-2 mr-8 w-[450px] overflow-hidden overflow-y-scroll px-6 py-4">
160160
<div className="flex w-full justify-between">
161161
<p className="mb-5 text-lg font-semibold">Contact support</p>
162162
<Button

apps/web/components/plain/__tests__/PlainContactForm.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { describe, it, expect, vi, beforeEach } from "vitest";
44

55
import { showToast } from "@calcom/ui/components/toast";
66

7-
import PlainContactForm from "../../../lib/plain/PlainContactForm";
7+
import PlainContactForm from "../PlainContactForm";
88

99
vi.mock("next-auth/react", () => ({
1010
useSession: vi.fn(),

apps/web/lib/plain/dynamicProvider.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,6 @@ import dynamic from "next/dynamic";
22
import { Fragment } from "react";
33

44
// Preload caused by dynamic import doesn't seem to add nonce and thus preload fails but the functionality still works - https://github.com/vercel/next.js/issues/81260
5-
export default process.env.NEXT_PUBLIC_PLAIN_CHAT_ID ? dynamic(() => import("./plainChat")) : Fragment;
5+
export default process.env.NEXT_PUBLIC_PLAIN_CHAT_ID
6+
? dynamic(() => import("../../components/plain/plainChat"))
7+
: Fragment;

0 commit comments

Comments
 (0)