Skip to content

Commit fde4197

Browse files
deepanshurajput0Deepanshu Vermaromitg2
authored
fix: Navbar hiding unexpectedly on Workflow page scroll (calcom#27557)
* prevent navbar hiding unexpectedly on scroll * update z-5 to z-10 for consistency --------- Co-authored-by: Deepanshu Verma <deepanshuverma186@email.com> Co-authored-by: Romit <romitgabani@icloud.com> Co-authored-by: Romit <85230081+romitg2@users.noreply.github.com>
1 parent 6eafb4b commit fde4197

1 file changed

Lines changed: 18 additions & 18 deletions

File tree

apps/web/modules/ee/workflows/views/WorkflowPage.tsx

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -145,11 +145,11 @@ function WorkflowPage({
145145
workflow && hasPermissions(workflow)
146146
? workflow?.permissions
147147
: {
148-
canUpdate: !teamId,
149-
canView: !teamId,
150-
canDelete: !teamId,
151-
readOnly: !!teamId,
152-
};
148+
canUpdate: !teamId,
149+
canView: !teamId,
150+
canDelete: !teamId,
151+
readOnly: !!teamId,
152+
};
153153

154154
// Watch for form name changes
155155
const watchedName = form.watch("name");
@@ -225,8 +225,8 @@ function WorkflowPage({
225225
activeOn = isOrg
226226
? teamOptions
227227
: isFormTrigger(workflowData.trigger)
228-
? routingFormOptions
229-
: allEventTypeOptions;
228+
? routingFormOptions
229+
: allEventTypeOptions;
230230
} else {
231231
if (isOrg) {
232232
activeOn = workflowData.activeOnTeams.flatMap((active) => {
@@ -256,9 +256,9 @@ function WorkflowPage({
256256
);
257257
activeOn = workflowData.activeOn
258258
? workflowData.activeOn.map((active) => ({
259-
value: active.eventType.id.toString(),
260-
label: active.eventType.slug,
261-
}))
259+
value: active.eventType.id.toString(),
260+
label: active.eventType.slug,
261+
}))
262262
: undefined;
263263
}
264264
}
@@ -433,7 +433,7 @@ function WorkflowPage({
433433
await validateAndSubmitWorkflow(values);
434434
}}>
435435
<div className="flex h-full min-h-screen w-full flex-col">
436-
<div className="bg-default border-muted flex w-full items-center justify-between border-b px-2 py-2 sm:px-4">
436+
<div className="bg-default border-muted sticky top-0 z-10 flex w-full items-center justify-between border-b px-2 py-2 sm:px-4">
437437
<div className="border-muted flex min-w-0 items-center gap-2">
438438
<Button
439439
color="secondary"
@@ -461,11 +461,11 @@ function WorkflowPage({
461461
) : (
462462
<div className="group flex min-w-0 items-center gap-1">
463463

464-
<span
465-
className="text-default hover:bg-cal-muted min-w-0 cursor-pointer truncate whitespace-nowrap rounded p-1 text-sm font-semibold leading-none"
466-
onClick={() => setIsEditingName(true)}>
467-
{watchedName ? watchedName : isPending ? t("loading") : t("untitled")}
468-
</span>
464+
<span
465+
className="text-default hover:bg-cal-muted min-w-0 cursor-pointer truncate whitespace-nowrap rounded p-1 text-sm font-semibold leading-none"
466+
onClick={() => setIsEditingName(true)}>
467+
{watchedName ? watchedName : isPending ? t("loading") : t("untitled")}
468+
</span>
469469
<Button
470470
variant="icon"
471471
color="minimal"
@@ -536,8 +536,8 @@ function WorkflowPage({
536536
isOrg
537537
? teamOptions
538538
: isFormTrigger(watchedTrigger)
539-
? routingFormOptions
540-
: allEventTypeOptions
539+
? routingFormOptions
540+
: allEventTypeOptions
541541
}
542542
eventTypeOptions={allEventTypeOptions}
543543
onSaveWorkflow={handleSaveWorkflow}

0 commit comments

Comments
 (0)