Skip to content

Commit 7f1b94a

Browse files
style: hide icons from booking actions dialog in mobile view (calcom#25147)
* style: hide icons from booking actions dialog in mobile view * apply correct padding in mobile view --------- Co-authored-by: Pallav <90088723+Pallava-Joshi@users.noreply.github.com>
1 parent 801ba50 commit 7f1b94a

3 files changed

Lines changed: 12 additions & 18 deletions

File tree

apps/web/components/dialog/AddGuestsDialog.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,11 @@ export const AddGuestsDialog = (props: IAddGuestsDialog) => {
5757
return (
5858
<Dialog open={isOpenDialog} onOpenChange={setIsOpenDialog}>
5959
<DialogContent enableOverflow>
60-
<div className="flex flex-row space-x-3">
61-
<div className="bg-subtle flex h-10 w-10 flex-shrink-0 justify-center rounded-full">
60+
<div className="flex flex-row md:space-x-3">
61+
<div className="bg-subtle hidden h-10 w-10 flex-shrink-0 justify-center rounded-full md:flex">
6262
<Icon name="user-plus" className="m-auto h-6 w-6" />
6363
</div>
64-
<div className="w-full pt-1">
64+
<div className="w-full md:pt-1">
6565
<DialogHeader title={t("additional_guests")} />
6666
<div className="bg-default">
6767
<MultiEmail

apps/web/components/dialog/EditLocationDialog.tsx

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import LocationSelect from "@calcom/features/form/components/LocationSelect";
2121
import { useLocale } from "@calcom/lib/hooks/useLocale";
2222
import { trpc } from "@calcom/trpc/react";
2323
import { Button } from "@calcom/ui/components/button";
24-
import { DialogContent, DialogFooter } from "@calcom/ui/components/dialog";
24+
import { DialogContent, DialogFooter, DialogHeader } from "@calcom/ui/components/dialog";
2525
import { Form, Input } from "@calcom/ui/components/form";
2626
import { Icon } from "@calcom/ui/components/icon";
2727

@@ -202,7 +202,6 @@ export const EditLocationDialog = (props: ISetLocationDialog) => {
202202
id="locationInput"
203203
placeholder={t(eventLocationType.organizerInputPlaceholder || "")}
204204
required
205-
206205
defaultValue={
207206
defaultLocation ? defaultLocation[eventLocationType.defaultValueVariable] : undefined
208207
}
@@ -252,22 +251,17 @@ export const EditLocationDialog = (props: ISetLocationDialog) => {
252251
"locationAddress",
253252
"locationPhoneNumber",
254253
]);
255-
} catch (error) {
254+
} catch {
256255
// Let the user retry
257256
setIsLocationUpdating(false);
258257
}
259258
}}>
260-
<div className="flex flex-row space-x-3">
261-
<div className="bg-subtle mx-auto flex h-12 w-12 flex-shrink-0 items-center justify-center rounded-full sm:mx-0 sm:h-10 sm:w-10">
259+
<div className="flex flex-row md:space-x-3">
260+
<div className="bg-subtle mx-auto hidden h-12 w-12 flex-shrink-0 items-center justify-center rounded-full sm:mx-0 sm:h-10 sm:w-10 md:flex">
262261
<Icon name="map-pin" className="text-emphasis h-6 w-6" />
263262
</div>
264-
<div className="w-full">
265-
<div className="mt-3 text-center sm:mt-0 sm:text-left">
266-
<h3 className="text-emphasis text-lg font-medium leading-6" id="modal-title">
267-
{t("edit_location")}
268-
</h3>
269-
</div>
270-
<div className="mt-3 text-center sm:mt-0 sm:text-left" />
263+
<div className="w-full md:pt-1">
264+
<DialogHeader title={t("edit_location")} />
271265

272266
<p className="text-emphasis mb-2 ml-1 mt-6 text-sm font-bold">{t("current_location")}:</p>
273267
<p className="text-emphasis mb-2 ml-1 break-all text-sm">

apps/web/components/dialog/RescheduleDialog.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,11 @@ export const RescheduleDialog = (props: IRescheduleDialog) => {
3737
return (
3838
<Dialog open={isOpenDialog} onOpenChange={setIsOpenDialog}>
3939
<DialogContent enableOverflow>
40-
<div className="flex flex-row space-x-3">
41-
<div className="bg-subtle flex h-10 w-10 flex-shrink-0 justify-center rounded-full ">
40+
<div className="flex flex-row md:space-x-3">
41+
<div className="bg-subtle hidden h-10 w-10 flex-shrink-0 justify-center rounded-full md:flex">
4242
<Icon name="clock" className="m-auto h-6 w-6" />
4343
</div>
44-
<div className="w-full pt-1">
44+
<div className="w-full md:pt-1">
4545
<DialogHeader title={t("send_reschedule_request")} />
4646
<p className="text-subtle text-sm">{t("reschedule_modal_description")}</p>
4747
<p className="text-emphasis mb-2 mt-6 text-sm font-bold">

0 commit comments

Comments
 (0)