Skip to content

Commit 1fa87ae

Browse files
RamK777-stackUdit TakkarPeerRich
authored
fix: Modal popup overflow issue in reschedule booking (#10976)
Co-authored-by: Udit Takkar <[email protected]> Co-authored-by: Peer Richelsen <[email protected]>
1 parent f6f4b67 commit 1fa87ae

File tree

2 files changed

+16
-18
lines changed

2 files changed

+16
-18
lines changed

apps/web/components/dialog/EditLocationDialog.tsx

Lines changed: 15 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -382,24 +382,22 @@ export const EditLocationDialog = (props: ISetLocationDialog) => {
382382
}}
383383
/>
384384
{selectedLocation && LocationOptions}
385-
<DialogFooter>
386-
<div className="mt-4 flex justify-end space-x-2 rtl:space-x-reverse">
387-
<Button
388-
onClick={() => {
389-
setShowLocationModal(false);
390-
setSelectedLocation?.(undefined);
391-
setEditingLocationType?.("");
392-
locationFormMethods.unregister(["locationType", "locationLink"]);
393-
}}
394-
type="button"
395-
color="secondary">
396-
{t("cancel")}
397-
</Button>
385+
<DialogFooter className="mt-4">
386+
<Button
387+
onClick={() => {
388+
setShowLocationModal(false);
389+
setSelectedLocation?.(undefined);
390+
setEditingLocationType?.("");
391+
locationFormMethods.unregister(["locationType", "locationLink"]);
392+
}}
393+
type="button"
394+
color="secondary">
395+
{t("cancel")}
396+
</Button>
398397

399-
<Button data-testid="update-location" type="submit">
400-
{t("update")}
401-
</Button>
402-
</div>
398+
<Button data-testid="update-location" type="submit">
399+
{t("update")}
400+
</Button>
403401
</DialogFooter>
404402
</Form>
405403
</div>

apps/web/components/dialog/RescheduleDialog.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export const RescheduleDialog = (props: IRescheduleDialog) => {
4141

4242
return (
4343
<Dialog open={isOpenDialog} onOpenChange={setIsOpenDialog}>
44-
<DialogContent>
44+
<DialogContent enableOverflow>
4545
<div className="flex flex-row space-x-3">
4646
<div className="flex h-10 w-10 flex-shrink-0 justify-center rounded-full bg-[#FAFAFA]">
4747
<Clock className="m-auto h-6 w-6" />

0 commit comments

Comments
 (0)