Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

Seperate scorllbar for different layout part

Tianzhou Chen75ba4953a951
diff --git a/frontend/src/layouts/BodyLayout.vue b/frontend/src/layouts/BodyLayout.vue
index 846a8c2213..7047ce0802 100644
--- a/frontend/src/layouts/BodyLayout.vue
+++ b/frontend/src/layouts/BodyLayout.vue
@@ -1,7 +1,7 @@
<template>
<!-- This example requires Tailwind CSS v2.0+ -->
- <div class="h-full flex overflow-hidden bg-white">
- <!-- Off-canvas menu for mobile, show/hide based on off-canvas menu state. -->
+ <!-- Off-canvas menu for mobile, show/hide based on off-canvas menu state. -->
+ <div class="h-full flex overflow-hidden">
<div v-if="state.showMobileOverlay" class="lg:hidden">
<div class="fixed inset-0 flex z-40">
<!--
@@ -88,40 +88,36 @@
</div>
<!-- Static sidebar for desktop -->
- <div class="hidden lg:flex lg:flex-shrink-0">
+ <aside class="hidden lg:flex lg:flex-shrink-0">
<div class="flex flex-col w-64">
<!-- Sidebar component, swap this element with another sidebar if you like -->
- <div
- class="flex flex-col h-0 flex-1 border-r border-gray-200 bg-gray-100"
- >
- <div class="flex-1 flex flex-col pt-5 pb-4 overflow-y-auto">
- <router-view name="leftSidebar" />
- </div>
- <div class="flex-shrink-0 flex border-t border-gray-200 p-4">
- <a href="#" class="flex-shrink-0 w-full group block">
- <div class="flex items-center">
- <svg
- class="w-5 h-5"
- fill="none"
- stroke="currentColor"
- viewBox="0 0 24 24"
- xmlns="http://www.w3.org/2000/svg"
- >
- <path
- stroke-linecap="round"
- stroke-linejoin="round"
- stroke-width="2"
- d="M8.228 9c.549-1.165 2.03-2 3.772-2 2.21 0 4 1.343 4 3 0 1.4-1.278 2.575-3.006 2.907-.542.104-.994.54-.994 1.093m0 3h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"
- ></path>
- </svg>
- <a href="/" class="ml-1 text-sm">Help &amp; Feedback</a>
- </div>
- </a>
- </div>
+ <div class="flex-1 flex flex-col pt-5 pb-4 overflow-y-auto">
+ <router-view name="leftSidebar" />
+ </div>
+ <div class="flex-shrink-0 flex border-t border-gray-200 p-4">
+ <a href="#" class="flex-shrink-0 w-full group block">
+ <div class="flex items-center">
+ <svg
+ class="w-5 h-5"
+ fill="none"
+ stroke="currentColor"
+ viewBox="0 0 24 24"
+ xmlns="http://www.w3.org/2000/svg"
+ >
+ <path
+ stroke-linecap="round"
+ stroke-linejoin="round"
+ stroke-width="2"
+ d="M8.228 9c.549-1.165 2.03-2 3.772-2 2.21 0 4 1.343 4 3 0 1.4-1.278 2.575-3.006 2.907-.542.104-.994.54-.994 1.093m0 3h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"
+ ></path>
+ </svg>
+ <a href="/" class="ml-1 text-sm">Help &amp; Feedback</a>
+ </div>
+ </a>
</div>
</div>
- </div>
- <div class="flex flex-col min-w-0 flex-1 overflow-hidden">
+ </aside>
+ <div class="flex flex-col min-w-0 flex-1">
<div class="lg:hidden">
<div
class="flex items-center justify-start bg-gray-50 border-b border-gray-200 px-4 py-1.5"
@@ -156,22 +152,20 @@
</div>
</div>
</div>
- <div class="flex-grow w-full mx-auto lg:flex">
- <!-- Left sidebar & main wrapper -->
- <div class="flex-1 min-w-0 bg-white lg:flex">
- <div class="bg-white lg:min-w-0 lg:flex-1">
- <div class="hidden lg:block px-4 py-3">
- <Breadcrumb />
- </div>
+ <main class="w-full mx-auto lg:flex overflow-y-auto">
+ <!-- main wrapper -->
+ <div class="lg:min-w-0 lg:flex-1">
+ <div class="hidden lg:block px-4">
+ <Breadcrumb />
+ </div>
- <div class="h-full overflow-y-auto">
- <!-- Start main area-->
- <router-view name="content" />
- <!-- End main area -->
- </div>
+ <div class="flex-grow w-full h-full">
+ <!-- Start main area-->
+ <router-view name="content" />
+ <!-- End main area -->
</div>
</div>
- </div>
+ </main>
</div>
</div>
</template>
diff --git a/frontend/src/layouts/DashboardLayout.vue b/frontend/src/layouts/DashboardLayout.vue
index 0280fb2808..a38e7db243 100644
--- a/frontend/src/layouts/DashboardLayout.vue
+++ b/frontend/src/layouts/DashboardLayout.vue
@@ -1,17 +1,13 @@
<template>
<!-- This example requires Tailwind CSS v2.0+ -->
- <div class="relative h-screen flex flex-col">
+ <div class="relative h-screen overflow-hidden flex flex-col">
<nav class="bg-white border-b border-block-border">
<div class="max-w-full mx-auto px-6">
<DashboardHeader />
</div>
</nav>
- <main class="flex flex-grow">
- <div class="max-w-full">
- <router-view name="body" />
- </div>
- </main>
+ <router-view name="body" />
</div>
</template>
diff --git a/frontend/src/views/Home.vue b/frontend/src/views/Home.vue
index d9d1310963..999467b448 100644
--- a/frontend/src/views/Home.vue
+++ b/frontend/src/views/Home.vue
@@ -1,35 +1,37 @@
<template>
- <div class="px-2 py-2 border-b">
- <BBTableTabFilter
- :itemList="state.environmentFilterList"
- :selectedIndex="state.selectedFilterIndex"
- @select-index="selectFilter"
- />
- </div>
- <h3 class="mt-4 pl-4 text-base leading-6 font-medium text-gray-900">
- Attention
- </h3>
- <div class="overflow-x-auto sm:-mx-6 lg:-mx-8">
- <div class="py-2 align-middle inline-block min-w-full sm:px-6 lg:px-8">
- <PipelineTable :pipelineList="filteredList(state.attentionList)" />
+ <div class="flex flex-col">
+ <div class="px-2 py-2 border-b">
+ <BBTableTabFilter
+ :itemList="state.environmentFilterList"
+ :selectedIndex="state.selectedFilterIndex"
+ @select-index="selectFilter"
+ />
+ </div>
+ <h3 class="mt-4 pl-4 text-base leading-6 font-medium text-gray-900">
+ Attention
+ </h3>
+ <div class="overflow-x-auto sm:-mx-6 lg:-mx-8">
+ <div class="py-2 align-middle inline-block min-w-full sm:px-6 lg:px-8">
+ <PipelineTable :pipelineList="filteredList(state.attentionList)" />
+ </div>
</div>
- </div>
- <h3 class="mt-4 pl-4 text-base leading-6 font-medium text-gray-900">
- Subscribed
- </h3>
- <div class="overflow-x-auto sm:-mx-6 lg:-mx-8">
- <div class="py-2 align-middle inline-block min-w-full sm:px-6 lg:px-8">
- <PipelineTable :pipelineList="filteredList(state.subscribeList)" />
+ <h3 class="mt-4 pl-4 text-base leading-6 font-medium text-gray-900">
+ Subscribed
+ </h3>
+ <div class="overflow-x-auto sm:-mx-6 lg:-mx-8">
+ <div class="py-2 align-middle inline-block min-w-full sm:px-6 lg:px-8">
+ <PipelineTable :pipelineList="filteredList(state.subscribeList)" />
+ </div>
</div>
- </div>
- <h3 class="mt-4 pl-4 text-base leading-6 font-medium text-gray-900">
- Recently Closed
- </h3>
- <div class="overflow-x-auto sm:-mx-6 lg:-mx-8">
- <div class="py-2 align-middle inline-block min-w-full sm:px-6 lg:px-8">
- <PipelineTable :pipelineList="filteredList(state.closeList)" />
+ <h3 class="mt-4 pl-4 text-base leading-6 font-medium text-gray-900">
+ Recently Closed
+ </h3>
+ <div class="overflow-x-auto sm:-mx-6 lg:-mx-8">
+ <div class="py-2 align-middle inline-block min-w-full sm:px-6 lg:px-8">
+ <PipelineTable :pipelineList="filteredList(state.closeList)" />
+ </div>
</div>
</div>
</template>
diff --git a/frontend/src/views/MainSidebar.vue b/frontend/src/views/MainSidebar.vue
index 7639a4d6fc..a1cdbcae08 100644
--- a/frontend/src/views/MainSidebar.vue
+++ b/frontend/src/views/MainSidebar.vue
@@ -1,6 +1,6 @@
<template>
<!-- Navigation -->
- <nav class="flex-1 flex flex-col mt-2 px-3 overflow-y-auto">
+ <nav class="px-2">
<div class="space-y-1">
<router-link
to="/"