Skip to content

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

style: make drawer scrollable when the content is long (#2241)

ZhengX530aa0109d24
diff --git a/frontend/src/components/Drawer.vue b/frontend/src/components/Drawer.vue
index e3dcdc8aee..db2bf83e37 100644
--- a/frontend/src/components/Drawer.vue
+++ b/frontend/src/components/Drawer.vue
@@ -18,12 +18,14 @@
><heroicons-outline:x class="h-6 w-6"
/></i>
</header>
- <section class="p-4">
- <slot name="body"></slot>
- </section>
- <footer class="absolute bottom-5 w-full">
- <slot name="footer"></slot>
- </footer>
+ <div class="h-full flex flex-col justify-between">
+ <section class="p-4 overflow-auto">
+ <slot name="body"></slot>
+ </section>
+ <footer class="w-full h-40 mb-16">
+ <slot name="footer"></slot>
+ </footer>
+ </div>
</div>
</Transition>
</template>
diff --git a/frontend/src/components/HelpDrawer/HelpDrawer.vue b/frontend/src/components/HelpDrawer/HelpDrawer.vue
index a0dad3d6a0..8c18970c4c 100644
--- a/frontend/src/components/HelpDrawer/HelpDrawer.vue
+++ b/frontend/src/components/HelpDrawer/HelpDrawer.vue
@@ -7,11 +7,11 @@
>
<template #body>
<!-- eslint-disable-next-line vue/no-v-html -->
- <div v-if="state.html" v-html="state.html"></div>
+ <div v-if="state.html" class="overflow-auto" v-html="state.html"></div>
</template>
<template #footer>
- <div class="flex flex-row justify-center">
- <div v-if="locale === 'en-US'" class="w-1/2">
+ <div class="flex flex-row justify-center pb-10">
+ <div v-if="locale === 'en-US'" class="w-1/2 pt-2">
<a href="https://discord.gg/VHEXRDQq" target="_blank">
<img
src="https://discordapp.com/api/guilds/861117579216420874/widget.png?style=banner4"
@@ -21,7 +21,7 @@
</div>
<div
v-if="locale === 'zh-CN'"
- class="w-full flex flex-col items-center"
+ class="w-full flex flex-col items-center pt-2"
>
<p class="text-sm mb-2">微信扫码加入官方社群</p>
<div class="flex flex-row justify-center">