Skip to content

Scheduling infrastructure for absolutely everyone.

fix: double border issue in Location Select (#6646)

Nafees Nazik0b9364720923
diff --git a/apps/web/components/dialog/EditLocationDialog.tsx b/apps/web/components/dialog/EditLocationDialog.tsx
index 85426a66f57..1d9f99ae803 100644
--- a/apps/web/components/dialog/EditLocationDialog.tsx
+++ b/apps/web/components/dialog/EditLocationDialog.tsx
@@ -289,30 +289,31 @@ export const EditLocationDialog = (props: ISetLocationDialog) => {
name="locationType"
control={locationFormMethods.control}
render={() => (
- <LocationSelect
- maxMenuHeight={300}
- name="location"
- defaultValue={selection}
- options={locationOptions}
- isSearchable
- className="my-4 block w-full min-w-0 flex-1 rounded-sm border border-gray-300 text-sm"
- onChange={(val) => {
- if (val) {
- locationFormMethods.setValue("locationType", val.value);
- locationFormMethods.unregister([
- "locationLink",
- "locationAddress",
- "locationPhoneNumber",
- ]);
- locationFormMethods.clearErrors([
- "locationLink",
- "locationPhoneNumber",
- "locationAddress",
- ]);
- setSelectedLocation?.(val);
- }
- }}
- />
+ <div className="py-4">
+ <LocationSelect
+ maxMenuHeight={300}
+ name="location"
+ defaultValue={selection}
+ options={locationOptions}
+ isSearchable
+ onChange={(val) => {
+ if (val) {
+ locationFormMethods.setValue("locationType", val.value);
+ locationFormMethods.unregister([
+ "locationLink",
+ "locationAddress",
+ "locationPhoneNumber",
+ ]);
+ locationFormMethods.clearErrors([
+ "locationLink",
+ "locationPhoneNumber",
+ "locationAddress",
+ ]);
+ setSelectedLocation?.(val);
+ }
+ }}
+ />
+ </div>
)}
/>
);
diff --git a/packages/ui/components/form/select/components.tsx b/packages/ui/components/form/select/components.tsx
index 8e44189af51..503c21c2951 100644
--- a/packages/ui/components/form/select/components.tsx
+++ b/packages/ui/components/form/select/components.tsx
@@ -147,7 +147,7 @@ export const MenuComponent = <
<reactSelectComponents.Menu
{...props}
className={classNames(
- "dark:bg-darkgray-100 dark:border-darkgray-300 !rounded-md border border-gray-900 bg-white text-sm leading-4 dark:text-white",
+ "dark:bg-darkgray-100 !rounded-md bg-white text-sm leading-4 dark:text-white",
className
)}
/>