Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Fix custom scrollbar in Calendar description #16780

Closed
wants to merge 5 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion packages/features/bookings/Booker/components/EventMeta.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import { useTimePreferences } from "@calcom/features/bookings/lib";
import type { BookerEvent } from "@calcom/features/bookings/types";
import { useLocale } from "@calcom/lib/hooks/useLocale";

import "../../../bookings/lib/global.css";
import { fadeInUp } from "../config";
import { useBookerStore } from "../store";
import { FromToTime } from "../utils/dates";
Expand Down Expand Up @@ -121,7 +122,7 @@ export const EventMeta = ({
)}
<EventTitle className={`${classNames?.eventMetaTitle} my-2`}>{event?.title}</EventTitle>
{event.description && (
<EventMetaBlock contentClassName="mb-8 break-words max-w-full max-h-[180px] scroll-bar pr-4">
<EventMetaBlock contentClassName="mb-8 break-words max-w-full max-h-[180px] overflow-y-auto pr-4">
<div dangerouslySetInnerHTML={{ __html: event.description }} />
</EventMetaBlock>
)}
Expand Down
16 changes: 16 additions & 0 deletions packages/features/bookings/lib/global.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/* Scrollbar styles */
::-webkit-scrollbar {
width: 12px;
}

::-webkit-scrollbar-track {
border: 1px solid rgb(231, 232, 229);
border-radius: 10px;
}

::-webkit-scrollbar-thumb {
background:rgb(231, 232, 229);
border-radius: 10px;
}


Loading