Skip to content

Commit 62f5986

Browse files
committed
fix scroll overflow issue in calendar with banner
1 parent 8d890bd commit 62f5986

File tree

2 files changed

+15
-15
lines changed

2 files changed

+15
-15
lines changed

resources/js/Layouts/AppLayout.vue

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -256,21 +256,21 @@ const page = usePage<{
256256
</div>
257257
<div class="flex-1 lg:ml-[230px] 2xl:ml-[250px] min-w-0">
258258
<div
259-
class="lg:hidden w-full px-3 py-1 border-b border-b-default-background-separator text-text-secondary flex justify-between items-center">
260-
<Bars3Icon
261-
class="w-7 text-text-secondary"
262-
@click="showSidebarMenu = !showSidebarMenu"></Bars3Icon>
263-
<OrganizationSwitcher></OrganizationSwitcher>
264-
</div>
265-
266-
<Head :title="title" />
259+
class="h-screen overflow-y-auto flex flex-col bg-default-background border-l border-default-background-separator">
260+
<div
261+
class="lg:hidden w-full px-3 py-1 border-b border-b-default-background-separator text-text-secondary flex justify-between items-center">
262+
<Bars3Icon
263+
class="w-7 text-text-secondary"
264+
@click="showSidebarMenu = !showSidebarMenu"></Bars3Icon>
265+
<OrganizationSwitcher></OrganizationSwitcher>
266+
</div>
267267

268-
<Banner />
269-
<BillingBanner v-if="isBillingActivated()" />
268+
<Head :title="title" />
270269

271-
<div
272-
class="min-h-screen flex flex-col bg-default-background border-l border-default-background-separator">
273270
<!-- Page Heading -->
271+
<Banner />
272+
<BillingBanner v-if="isBillingActivated()" />
273+
274274
<header
275275
v-if="$slots.header"
276276
class="bg-default-background border-b border-default-background-separator shadow">
@@ -282,7 +282,7 @@ const page = usePage<{
282282
</header>
283283

284284
<!-- Page Content -->
285-
<main :class="twMerge('pb-28 flex-1', mainClass)">
285+
<main :class="twMerge('pb-28 relative flex-1', mainClass)">
286286
<div
287287
v-if="isOrganizationLoading"
288288
class="flex items-center justify-center h-screen">

resources/js/packages/ui/src/FullCalendar/TimeEntryCalendar.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ const calendarOptions = computed(() => ({
229229
center: 'title',
230230
right: 'timeGridWeek,timeGridDay',
231231
},
232-
height: '100vh',
232+
height: 'parent',
233233
slotMinTime: '00:00:00',
234234
slotMaxTime: '24:00:00',
235235
slotDuration: '00:15:00',
@@ -274,7 +274,7 @@ watch(showEditTimeEntryModal, (value) => {
274274
</script>
275275

276276
<template>
277-
<div class="h-screen w-full relative">
277+
<div class="w-full relative h-full flex-1">
278278
<div v-if="loading" class="flex items-center justify-center h-full">
279279
<div class="flex flex-col items-center space-y-4">
280280
<LoadingSpinner class="h-8 w-8" />

0 commit comments

Comments
 (0)