Skip to content

Scheduling infrastructure for absolutely everyone.

Fixes overflow for long calendar names (#2261)

Omar López785b156f951d
diff --git a/apps/web/components/DestinationCalendarSelector.tsx b/apps/web/components/DestinationCalendarSelector.tsx
index 7d829bdbbbe..fb515ea99bb 100644
--- a/apps/web/components/DestinationCalendarSelector.tsx
+++ b/apps/web/components/DestinationCalendarSelector.tsx
@@ -53,11 +53,14 @@ const DestinationCalendarSelector = ({
})),
})) ?? [];
return (
- <div className="relative">
+ <div className="relative" title={`${t("select_destination_calendar")}: ${selectedOption?.label || ""}`}>
{/* There's no easy way to customize the displayed value for a Select, so we fake it. */}
{!hidePlaceholder && (
- <div className="pointer-events-none absolute z-10">
- <Button size="sm" color="secondary" className="m-[1px] rounded-sm border-transparent">
+ <div className="pointer-events-none absolute z-10 w-full">
+ <Button
+ size="sm"
+ color="secondary"
+ className="m-[1px] w-[calc(100%_-_40px)] overflow-hidden overflow-ellipsis whitespace-nowrap rounded-sm border-none leading-5">
{t("select_destination_calendar")}: {selectedOption?.label || ""}
</Button>
</div>