Skip to content

Commit c6e74e6

Browse files
fix: add vertical spacing when hovered (calcom#26419)
1 parent 285f161 commit c6e74e6

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

packages/features/form/components/LocationSelect.tsx

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,11 +85,20 @@ export default function LocationSelect({
8585
...props
8686
}: Props<LocationOption, false, GroupOptionType> & { customClassNames?: LocationSelectCustomClassNames }) {
8787
const isPlatform = useIsPlatform();
88+
const { innerClassNames: propsInnerClassNames, ...restProps } = props as typeof props & {
89+
innerClassNames?: {
90+
option?: string;
91+
};
92+
};
8893
return (
8994
<Select<LocationOption>
9095
name="location"
9196
id="location-select"
9297
data-testid="location-select"
98+
innerClassNames={{
99+
...propsInnerClassNames,
100+
option: classNames("mb-1 last:mb-0", propsInnerClassNames?.option),
101+
}}
93102
components={{
94103
Option: (props) => {
95104
return (
@@ -137,7 +146,7 @@ export default function LocationSelect({
137146
{e.label}
138147
</p>
139148
)}
140-
{...props}
149+
{...restProps}
141150
/>
142151
);
143152
}

0 commit comments

Comments
 (0)