Skip to content

Commit

Permalink
Merge pull request #698 from dannon/scrolling-fix
Browse files Browse the repository at this point in the history
[website] Refactor layout overflow handling / fix scroll on workflow pages.
  • Loading branch information
mvdbeek authored Feb 27, 2025
2 parents 9c2c36b + a2cbe94 commit 006d86c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion website/app.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<template>
<div class="h-dvh flex flex-col bg-chicago-50">
<IWCHeader />
<main class="flex overflow-hidden">
<main class="flex overflow-y-auto">
<NuxtPage />
</main>
</div>
Expand Down
4 changes: 2 additions & 2 deletions website/layouts/default.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const hasRightSidebar = computed(() => {
});
</script>
<template>
<div class="w-full" :class="hasHero ? 'overflow-y-auto' : 'overflow-hidden'">
<div class="w-full overflow-y-auto">
<!-- Hero -->
<slot name="hero"></slot>
<div class="flex">
Expand All @@ -24,7 +24,7 @@ const hasRightSidebar = computed(() => {
<slot name="leftSidebar"></slot>
</div>
<!-- content -->
<div class="flex-1 p-4" :class="{ 'overflow-y-auto': !hasHero }">
<div class="flex-1 p-4 overflow-y-auto">
<slot name="content"></slot>
</div>
<!-- Right sidebar -->
Expand Down
2 changes: 1 addition & 1 deletion website/pages/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ function selectWorkflow(workflow: Workflow) {
</script>

<template>
<NuxtLayout class="overflow-hidden">
<NuxtLayout>
<template #hero>
<div class="flex bg-ebony-clay p-8 space-y-6 items-center" :style="{ 'flex-direction': 'column' }">
<h1 class="text-5xl my-2 text-white text-center font-bold">
Expand Down

0 comments on commit 006d86c

Please # to comment.